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
 SQL Server Development (2000)
 Import Mayhem with dups and contraint on dups

Author  Topic 

sql777
Constraint Violating Yak Guru

314 Posts

Posted - 2003-01-01 : 16:45:10
Hi,
I'm trying to import a table to a new database design and I have a unique constraint on the 'email' column. The old table i'm trying to import has duplicates in the email column.

How can I view all the duplicates for a particular column in a table?

Its something like Having (count(*)) > 1 or something?




graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2003-01-01 : 19:14:00
The article on duplicates (http://www.sqlteam.com/item.asp?ItemID=3331) has a query at the start that displays duplicates.

===============================================
Creating tomorrow's legacy systems today.
One crisis at a time.
Go to Top of Page
   

- Advertisement -