File tree 2 files changed +16
-0
lines changed
solution/1900-1999/1978.Employees Whose Manager Left the Company
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -80,4 +80,12 @@ WHERE b.employee_id IS NULL AND a.salary < 30000 AND a.manager_id IS NOT NULL
80
80
ORDER BY a .employee_id ;
81
81
```
82
82
83
+ ``` sql
84
+ # Write your MySQL query statement below
85
+ SELECT employee_id
86
+ FROM Employees
87
+ WHERE salary < 30000 AND manager_id NOT IN (SELECT employee_id FROM Employees)
88
+ ORDER BY employee_id;
89
+ ```
90
+
83
91
<!-- tabs:end -->
Original file line number Diff line number Diff line change @@ -72,4 +72,12 @@ WHERE b.employee_id IS NULL AND a.salary < 30000 AND a.manager_id IS NOT NULL
72
72
ORDER BY a .employee_id ;
73
73
```
74
74
75
+ ``` sql
76
+ # Write your MySQL query statement below
77
+ SELECT employee_id
78
+ FROM Employees
79
+ WHERE salary < 30000 AND manager_id NOT IN (SELECT employee_id FROM Employees)
80
+ ORDER BY employee_id;
81
+ ```
82
+
75
83
<!-- tabs:end -->
You can’t perform that action at this time.
0 commit comments