15May/083
T-SQL: Find Duplicates Without Using JOIN
I'd forgotten about this lil trick.
select eUserName from eAttribute GROUP BY eUserName HAVING COUNT( eUserName) > 1I'd forgotten about this lil trick.
select eUserName from eAttribute GROUP BY eUserName HAVING COUNT( eUserName) > 1
May 15th, 2008 - 19:01
why not use SELECT DISTINCT?
June 9th, 2008 - 15:56
Because that does not solve the problem — I want to find duplicate records, not distinct records.
May 23rd, 2009 - 20:23
Thanks.