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)
 duplicate records

Author  Topic 

itsonlyme4
Posting Yak Master

109 Posts

Posted - 2008-12-22 : 12:00:51
Select count (*) from tower.nbdocdeletedrecords
Where scandate = '12/13/2008'
and slevel = 6
Returns 5798 records


select distinct towid from tower.NBdocdeletedrecords where slevel=6 and scandate = '12/13/2008' and username = 'SQLKofc'
returns 2899 records which is correct

How do I delete the duplicates???

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-22 : 12:21:05
Search this site for the deleting duplicates article.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -