I have about 75,000 entries/rows, and after using
SELECT WWW, COUNT(*) c FROM pmd_listings GROUP BY WWW HAVING c > 1;
I have discovered I have about 9000 duplicates (based on just the one column, probably a little less in actuality). I can only use group by with aggregate functions (not entirely sure what that means) but I want to remove duplicates if the rows match in these columns (to be sure they're duplicates)
"friendly_url"
"www"
and "listing_zip"
Inside the table "pmd_listings"
.
I tried running this simulation:
But I get the following error:
#1054 - Unknown column 'c1.id' in 'where clause'
How can I acomplish this? Help is greatly appreciated!
Thank you!