dblabs/q.sql

6 lines
206 B
MySQL
Raw Normal View History

2024-01-25 21:55:48 +01:00
--Is there more than one student with the same name? If so, who are these students? [7]
2024-01-25 21:17:11 +01:00
SELECT firstName, lastName, count(*) as nbrOfStudents
FROM Students
GROUP BY firstName, lastName
HAVING count(*) > 1;