find duplicate record and delete Unknown 8:54 PM No comments WITH tblTemp as ( SELECT ROW_NUMBER() Over(PARTITION BY Name,Department ORDER BY Name) As RowNumber,* FROM <table_name> ) DELETE FROM tblTemp where RowNumber >1 Share This: Facebook Twitter Google+ Stumble Digg
0 comments:
Post a Comment