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.
LEFT JOIN
을 해야하는 지 인지하고 있다.1000
미만 값과 null
값 모두를 가져와야 했다.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.bonus is NULL