Any idea what is wrong with this sql statement. I have a row called LOTNUM_72 and want to delete all duplicates and keep only one record of each duplicates. The record that is kepted will be the one with the lowest autonumber. The auto numbered row is call ID.
Delete From [LotTrackingHistoryD]Where ID No In (Select Mn(ID) as MinID from FROM [Find duplicates for(LOTNUM_72) ] Group BY LOTNUM_72)
Delete From [LotTrackingHistoryD]Where ID No In (Select Mn(ID) as MinID from FROM [Find duplicates for(LOTNUM_72) ] Group BY LOTNUM_72)