Find duplicate rows in SQL Server by multiple conditions -
my fields are
id | name | starttime | endtime | date | description
i looking way select rows same entries in fields except id.
i not familiar sql tried this approach there 1 field relevant not (as in case) five.
my first idea try like:
select * table order name, date, starttime, endtime, description
if through entries @ least find duplicates not best way solve problem.
this should need:
select name, date, starttime, endtime, description table group name, date, starttime, endtime, description having count(*) > 1
Comments
Post a Comment