题目
选出所有 bonus < 1000 的员工的 name 及其 bonus。
Employee
表单
1 | +-------+--------+-----------+--------+ |
Bonus
表单
1 | +-------+-------+ |
示例1:
1 | +-------+-------+ |
解法
解法一:
SQL
1 | select name, bonus from Bonus right join Employee on Bonus.empId = Employee.empId where bonus < 1000 or bonus is null; |