Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Distinct

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-02-24 : 09:34:47
Page writes "I can use Distinct keyword to find the distinct data in
the table. What can I use to find what data is NOT distinct
in the table."

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-24 : 09:41:10
use GROUP BY and HAVING
select yourcolumn
from yourtable
group by yourcolumn
having count(*) > 1


----------------------------------
'KH'

It is inevitable
Go to Top of Page
   

- Advertisement -