G
Guest
I am having trouble displaying all duplicate records that meet a certain
criterion. I want them all displayed in the query so I can pick and choose
which ones I want to delete. This is the SQL code that's not doing it; that
is, displaying only the first of the duplicate records:
SELECT Lead_ID, Possession, Contact_Street1, Contact_City1, Contact_ST1,
Contact_ZIP1, Year_Built, Price, DateCreated, Source
FROM Listings
Where Lead_ID is not null
GROUP BY Lead_ID, Possession, Contact_Street1, Contact_City1, Contact_ST1,
Contact_ZIP1, Year_Built, Price, DateCreated, Source, Data_Source, Area_Name,
Description_Ad
HAVING Count(Listings.Lead_ID)>1
ORDER BY Listings.Lead_ID
criterion. I want them all displayed in the query so I can pick and choose
which ones I want to delete. This is the SQL code that's not doing it; that
is, displaying only the first of the duplicate records:
SELECT Lead_ID, Possession, Contact_Street1, Contact_City1, Contact_ST1,
Contact_ZIP1, Year_Built, Price, DateCreated, Source
FROM Listings
Where Lead_ID is not null
GROUP BY Lead_ID, Possession, Contact_Street1, Contact_City1, Contact_ST1,
Contact_ZIP1, Year_Built, Price, DateCreated, Source, Data_Source, Area_Name,
Description_Ad
HAVING Count(Listings.Lead_ID)>1
ORDER BY Listings.Lead_ID