Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Duplicate Records

Status
Not open for further replies.

Kgcounts

Programmer
Aug 2, 2001
1
US
I have a table that an ASP program entered in duplicate records. I am wanting to identify all of the duplicate records in the table based on values from two columns. I have not been able to get a select statment to work. Does anyone know the proper syntax?
 

Select col1, col2, count(*) As RecCnt
From tbl
Group by col1, col2
having count(*)>1 Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it if you have time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top