SyntaxFix
Write A Post
Hire A Developer
Questions
From Oracle (but works in most SQL DBs):
SELECT LASTNAME, COUNT(*) FROM STUDENTS GROUP BY LASTNAME HAVING COUNT(*) >= 3
P.S. it's faster one, because you have no Select withing Select methods here