Hi,
I have a query that finds duplicate records in my table. I need a query that will delete (just) the duplicates. Can anyone help me with the sql?
Here's what I have so far:
Thanks for your help.
I have a query that finds duplicate records in my table. I need a query that will delete (just) the duplicates. Can anyone help me with the sql?
Here's what I have so far:
Code:
SELECT CKNumber, CKDate, CheckAmount
FROM CKREGISTER
WHERE (((CKNumber) In (SELECT [CKNumber] FROM [CKREGISTER] As Tmp GROUP BY [CKNumber] HAVING Count(*)>1 )))
ORDER BY CKREGISTER.CKNumber;