以下是我表中的列:
Id
EmployeeId
IncidentRecordedById
DateOfIncident
Comments
TypeId
Description
IsAttenIncident
我想删除重复的行,其中EmployeeId、DateOfIncident、TypeId
和Description
都相同 - 只是为了澄清 - 我确实想保留其中一个。我认为我应该使用PARTITION
与OVER
子句,但我不确定。
谢谢