Is it possible to group results and then filter by how many rows are in the group?
Something like this:
SELECT * FROM mytable WHERE COUNT(*) > 1 GROUP BY name
You want to use HAVING to filter on the aggregate function.
SELECT name, COUNT(*) FROM mytable GROUP BY name HAVING COUNT(*) > 1
1.4m articles
1.4m replys
5 comments
56.9k users