query is to find duplicate store_numbers in store table
select STORE_NUMBER from STORE group by STORE_NUMBER having count (STORE_NUMBER) > 1
thanks, above query works for me, i am finding duplicates in contacts table who has the similar firstname,lastname and email.
here is SQL:
SELECT first_name,last_name,count(*) FROM uk_emea.contacts where deleted=0 group by first_name, last_name, email1 having count(*) > 1
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
query is to find duplicate
Thu, 12/04/2008 - 18:16 — adminquery is to find duplicate store_numbers in store table
select STORE_NUMBER
from STORE
group by STORE_NUMBER
having count (STORE_NUMBER) > 1
thanks, above query works
Wed, 05/25/2011 - 13:49 — Anonymousthanks, above query works for me, i am finding duplicates in contacts table who has the similar firstname,lastname and email.
here is SQL:
SELECT first_name,last_name,count(*)
FROM uk_emea.contacts where deleted=0
group by first_name, last_name, email1 having count(*) > 1