Skip to content

Commit 588e24d

Browse files
authored
Create 1965.Employees-With-Missing-Information.sql
1 parent afa254c commit 588e24d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: Easy/1965.Employees-With-Missing-Information.sql

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--MySQL & MS SQL Server
2+
SELECT employee_id
3+
FROM Employees
4+
WHERE employee_id NOT IN (SELECT employee_id FROM Salaries)
5+
UNION
6+
SELECT employee_id
7+
FROM Salaries
8+
WHERE employee_id NOT IN (SELECT employee_id FROM Employees)
9+
ORDER BY employee_id;

0 commit comments

Comments
 (0)