考察表连接和 CASE WHEN连接后的大表中,用 case when 去判断 bonus select c.emp_no ,c.first_name ,c.last_name ,d.btype ,c.salary ,(case when d.btype=1 then c.salary*0.1 when d.btype=2 then c.salary*0.2 else c.salary*0.3 end) as bonus from (select a.emp_no ,a.first_name ,a.last_name ,b.salary from employees a left join s...