Hi...
Oues: I have a table with duplicate names in it. Write me a query which returns only duplicate rows with number of times they are repeated.
I have a table with duplicate names in i
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 28, 2012, 2:24 AM EST
SELECT fname, COUNT(*) AS 'Count'
FROM emp
GROUP BY fname
HAVING (COUNT(*) > 1)
Thanks