Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to write SQL to find duplicate records in an Approach database. the duplicate records are based on the project#, costcategory, lastname, and firstname all being the same (there are 6 more fields in the database). The sql i am using is
SELECT * FROM sample
GROUP BY project#, lastname, firstname
HAVING COUNT(project#)>1
This does not work.
Project# COUNT(project#)
145678 8
and the rest of the selected fields. I want to see all 8 of the records. Also I need to find the duplicates using the 3 other fields in this query. any help would be appreciated...the only sql i know is what i have taught myself in the past two days over the net....
SELECT * FROM sample
GROUP BY project#, lastname, firstname
HAVING COUNT(project#)>1
This does not work.
Project# COUNT(project#)
145678 8
and the rest of the selected fields. I want to see all 8 of the records. Also I need to find the duplicates using the 3 other fields in this query. any help would be appreciated...the only sql i know is what i have taught myself in the past two days over the net....