|
Question : SQL delete query for duplicate records in Access
|
|
This is a follow up question to an earlier question. I have an Access database with duplicate records. The key is a composite of FUND, GROUP, ID. How would I write a query to delete duplicate records in the table.
|
|
Answer : SQL delete query for duplicate records in Access
|
|
delete from from inner join ( select FUND, GROUP, ID from group by FUND, GROUP, ID having count(*) > 1) b on
.FUND = a.FUND
.GROUP = GROUP
.ID = a.ID
--missed a from clause
|
|
|
|