SyntaxFix
Write A Post
Hire A Developer
Questions
For MySQL:
SELECT lastname AS ln FROM (SELECT lastname, count(*) as Counter FROM `students` GROUP BY `lastname`) AS tbl WHERE Counter > 2