I have a table with duplicate title and I can query them just fine when trying to find.
Here's the table and code
TABLE NAME: documents
+---------- +--------+
| module_srl| title |
+---------- +--------+
| 6225 | test21 |
| 6225 | test |
| 6225 | test |
| 6226 | test3 |
| 6226 | test5 |
| 6226 | test6 |
+-----------+--------+
SQL QUERY:
SELECT title
FROM `documents`
WHERE module_srl = 6225
GROUP BY title
HAVING COUNT( * ) >1
ORDER BY `documents`.`title` DESC
THIS SHOWS RESULT OF 1 which has 1 duplicate found (I guess)
Title
test
How do I delete "only" the duplicate title that matches module_srl = 6225
without deleting the original.