mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
Time: 1212 ms (42.95%), Space: 0B (100.00%) - LeetHub
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
# Write your MySQL query statement below
|
||||||
|
SELECT
|
||||||
|
employee_id,
|
||||||
|
salary as bonus
|
||||||
|
FROM Employees
|
||||||
|
WHERE employee_id % 2 = 1 AND name NOT LIKE 'M%'
|
||||||
|
UNION
|
||||||
|
SELECT
|
||||||
|
employee_id,
|
||||||
|
0 as bonus
|
||||||
|
FROM Employees
|
||||||
|
WHERE employee_id % 2 = 0 OR name LIKE 'M%'
|
||||||
|
ORDER BY employee_id
|
||||||
Reference in New Issue
Block a user