Skip to content

Commit

Permalink
Time: 536 ms (94.02%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Jun 11, 2024
1 parent c183106 commit 1a8f57b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Write your MySQL query statement below
SELECT employee_id, department_id FROM Employee GROUP BY employee_id HAVING COUNT(department_id) = 1 UNION SELECT employee_id, department_id FROM Employee WHERE primary_flag = 'Y'

0 comments on commit 1a8f57b

Please sign in to comment.