Skip to content

Commit bf8fb37

Browse files
authored
Update students-with-invalid-departments.sql
1 parent 4e8dccc commit bf8fb37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQL/students-with-invalid-departments.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SELECT s.id,
44
s.name
55
FROM students s
66
LEFT JOIN departments d
7-
ON s.department_id = d.id
7+
ON d.id = s.department_id
88
WHERE d.id IS NULL;
99

1010
# Time: O(n)

0 commit comments

Comments
 (0)