I have a table with results that come from an app.
Some of the results are duplicate and I can see which "survey_question_id
" has duplicate answers.
With this query I can see how many duplicates I have for each "survey_question_id
":
SELECT `id`,`survey_question_id`,
`question`,`date`, COUNT(*)
FROM answers
GROUP BY `survey_question_id`, `date`
HAVING COUNT(*) > 1 and `date` > '2015-10-15'
Table Results:
How can I delete duplicates?