문제
Write a solution to report the name and bonus amount of each employee with a bonus less than 1000.
Return the result table in any order.
The result format is in the following example.
문제 해결
SELECT e.name, b.bonus
FROM Employee AS e
LEFT JOIN Bonus AS b ON e.empId = b.empId
WHERE b.bonus < 1000 OR b.bouns IS NULL
실수한 점
1. bonus의 NULL 값을 표현하는 방법을 몰랐음 -> IS NULL 쓰면 됩니당....
'취준 > 코팅 테스트' 카테고리의 다른 글
[LeetCode] - 180. Consecutive Numbers (0) | 2024.03.27 |
---|---|
[LeetCode] - 1527. Patients With a Condition (0) | 2024.03.26 |
[LeetCode] - 586. Customer Placing the Largest Number of Orders (0) | 2024.03.25 |
[LeetCode] - 176.Second Higest Salary (0) | 2024.03.13 |
[LeetCode] 1407. Top Travellers (0) | 2024.03.12 |