dblabs/q.sql
2024-01-25 21:55:48 +01:00

6 lines
No EOL
206 B
SQL

--Is there more than one student with the same name? If so, who are these students? [7]
SELECT firstName, lastName, count(*) as nbrOfStudents
FROM Students
GROUP BY firstName, lastName
HAVING count(*) > 1;