I have a table with several thousand entries. Each record has a unique record number.
I need to locate records with a duplicate field and delete the record with the higher record number.
I use the following code to locate the duplicates:
SELECT ckey, COUNT(ckey) AS Expr1
FROM AccountMainTbl0
GROUP BY ckey
HAVING (COUNT(ckey) > 1)
Would appreciate any ideas you have on how I can delete the record with the higher record number.
Thanks,
Ron
I need to locate records with a duplicate field and delete the record with the higher record number.
I use the following code to locate the duplicates:
SELECT ckey, COUNT(ckey) AS Expr1
FROM AccountMainTbl0
GROUP BY ckey
HAVING (COUNT(ckey) > 1)
Would appreciate any ideas you have on how I can delete the record with the higher record number.
Thanks,
Ron