Im trying to cobble together what I think would be an easy query but Im having a hard time..what Im looking for is just a list of all the duplicate entries
Ive tried using != instead of not as well...
Im just a network guy who gets stuck fixing stuff out of my realm but i still like to try to figure it out on my own.
I found a way to get a count of the duplicates in my google searches
but that just says
there are 51 occurences of 0
i actually want to see them all line by line
does anyone have some advice, it would be greatly appreciated.
Code:
select contact_code, company_code
from contacts
where contact_code not unique
Ive tried using != instead of not as well...
Im just a network guy who gets stuck fixing stuff out of my realm but i still like to try to figure it out on my own.
I found a way to get a count of the duplicates in my google searches
Code:
select contact_code,
count (contact_code) as NumOccurences
from contacts
group by contact_code
having (Count(contact_code) > 1)
but that just says
there are 51 occurences of 0
i actually want to see them all line by line
does anyone have some advice, it would be greatly appreciated.