I have a location mysql db contain 3 columns
Country State City
US California Los Angeles
AU Queensland Brisbane
AU Victoria Southbank
AU Queensland Brisbane
How can I delete duplicate rows in mysql query?
DELETE FROM location WHERE country IN (
SELECT * FROM table_name
GROUP BY country, state, city
HAVING COUNT(*) >
);
I tried this query, but it didn't work