I have a bill of lading that is getting duplicate records (which is very very bad.) and i need to remove them with a select statement. and i'm having some problems doing so. i have looked at other faq's on this subject and they are not helping me out. (i've also looked at the suggested web sites. this issue is very urgent. any help would be very very helpful.)
when i run this:
SELECT ItemNumber, Count(ItemNumber)
FROM tbl_TempBillOFLading
GROUP BY tbl_TempBillOFLading.ItemNumber, tbl_TempBillOFLading.ItemNumber
HAVING Count(tbl_TempBillOFLading.ItemNumber) > 1
i get this as a result.
ItemNumber (no column name)
11803 2
thus it found two records in my bill with the same data.
I need a way to remove this with a delete. can someone please help?
thank you.
when i run this:
SELECT ItemNumber, Count(ItemNumber)
FROM tbl_TempBillOFLading
GROUP BY tbl_TempBillOFLading.ItemNumber, tbl_TempBillOFLading.ItemNumber
HAVING Count(tbl_TempBillOFLading.ItemNumber) > 1
i get this as a result.
ItemNumber (no column name)
11803 2
thus it found two records in my bill with the same data.
I need a way to remove this with a delete. can someone please help?
thank you.