🍋 ⚾️ 💻 🎬 🎮

coding_test/SQL 문제

[LeetCode] 577. Employee Bonus (JOIN)

aeightchill 2025. 2. 8. 13:40
728x90

< 문제 >

[SQL50] 577. Employee Bonus (JOIN)


 


< 풀이 >

SELECT A.name, B.bonus
FROM Employee A LEFT JOIN Bonus B ON A.empId = B.empId
WHERE bonus < 1000 OR bonus IS NULL;
728x90