August 3, 2007 at 12:44 pm
out of 56 columns i have in a table where emprole,empname are 2 columns which have many duplicates. how can i find rows where both empname,emprole are repeated
like...
JOHN DBA
JOHN DBA
August 3, 2007 at 1:04 pm
select empname, emprole
from mytable
group by empname, emprole
having count(*) > 1
Regards,
Rubes
August 3, 2007 at 1:05 pm
Pretty much ya...
What do you want to do next?
August 3, 2007 at 4:50 pm
And, what is the Primary Key of the table?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply