Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: SQL to find duplicate records


Message #1 by "Chellappa, Vasanthy P." <CHELLAVP@m...> on Thu, 05 Apr 2001 11:32:24 +0300

Please can someone give me the TSQL statement to find duplicate records
using 2 or more fields as a group;

ie:  duplicate course records for students who have taken a course more than
once

select student_id, course_id from coursetable
group by ???? having count(???) > 1

thank you in advance for your help

vas chellappa


  Return to Index