tinyevil777
Registered User.
- Local time
- Today, 03:24
- Joined
- Dec 10, 2010
- Messages
- 137
Hey there,
I'm trying to remove duplicate records that have the same ID and Total. These records are in one table.
I've just using the following code, however it returns no records.
Any idea where i'm going wrong?
Thank you in advance!
Tom
I'm trying to remove duplicate records that have the same ID and Total. These records are in one table.
I've just using the following code, however it returns no records.
Code:
SELECT First(test_order.OrderID) AS [OrderID Field], First(test_order.Total) AS [Total Field], Count(test_order.OrderID) AS NumberOfDups
FROM test_order
GROUP BY test_order.OrderID, test_order.Total
HAVING (((Count(test_order.OrderID))>1) AND ((Count(test_order.Total))>1));
Any idea where i'm going wrong?
Thank you in advance!
Tom