I am doing an insert into a table and before/after I do the insert I want to run a delet on any dupes there might be in the table.. here is what i have
any help would be AWESOME
Code:
DELETE FROM ANI
WHERE ANIID <=
(
SELECT MAX(ANIID)
FROM ANI
WHERE ANI = ANI
)
AND ANI = ANI
any help would be AWESOME