G
ges
Can any one help me with SQL syntax how to delete duplicate query?
I just want to delete one of the duplicate not both duplicate accounts.
SELECT tblCollectorNotes.AcctIDAuto, tblCollectorNotes.CN_Account
FROM tblCollectorNotes
WHERE (((tblCollectorNotes.AcctIDAuto) In (SELECT [AcctIDAuto] FROM
[tblCollectorNotes] As Tmp GROUP BY [AcctIDAuto] HAVING Count(*)>1 )))
ORDER BY tblCollectorNotes.AcctIDAuto;
But the above syntax will delete all duplicate query instead of delete just
one duplicate account.
Thanks in advance for any help.
Ges
I just want to delete one of the duplicate not both duplicate accounts.
SELECT tblCollectorNotes.AcctIDAuto, tblCollectorNotes.CN_Account
FROM tblCollectorNotes
WHERE (((tblCollectorNotes.AcctIDAuto) In (SELECT [AcctIDAuto] FROM
[tblCollectorNotes] As Tmp GROUP BY [AcctIDAuto] HAVING Count(*)>1 )))
ORDER BY tblCollectorNotes.AcctIDAuto;
But the above syntax will delete all duplicate query instead of delete just
one duplicate account.
Thanks in advance for any help.
Ges