I am trying to clean up a SQL table that has duplicate claim_id
s. How do I make this query to delete duplicate CLAIM_ID by CollectLogDate
SELECT ID, Claim_ID, InsertDate, CollectLogDate, Count(CollectLogDate) AS CollectLogDate
FROM [dbo].[temp]
GROUP BY ID, Claim_ID, InsertDate, CollectLogDate