I'm trying to delete duplicate rows from my database, that has the same 'input' column, and 'response' column. Right now, I have a query that SELECT all the duplicates, but I'm not sure how to write the query to delete the duplicates:
SELECT * , COUNT( * ) AS matches
FROM allData
GROUP BY input, response
HAVING matches > 1
If I'm writing the DELETE query, I think it would something like
DELETE FROM allData WHERE blah = blah
^---But that doesn't let me select the 'count(*)' or 'group by', so I'm not really sure how to properly write this.