Hi,
I have the following query in order to check for duplicates in a table
The problem is, if there are multiple duplicates, it only returns the last one?
Is there a way i can change it so it will return all the duplicates?
Cheers
I have the following query in order to check for duplicates in a table
Code:
SELECT MAX(ID) as PONumber FROM [PurchasesTemp]
GROUP BY PONumber
Having Count(*) > 1
The problem is, if there are multiple duplicates, it only returns the last one?
Is there a way i can change it so it will return all the duplicates?
Cheers