SyntaxFix
Write A Post
Hire A Developer
Questions
What about :
SELECT * FROM table del LEFT JOIN table keep ON del.id < keep.id GROUP BY del.* HAVING count(*) > N;
It returns rows with more than N rows before. Could be useful ?