select sa.emp_no, first_name, last_name, btype, salary, case btype when 1 then round(salary*0.1,1) when 2 then round(salary*0.2,1) else round (salary*0.3,1) end as bonus from salaries sa join emp_bonus bon on sa.emp_no = bon.emp_no join employees em on sa.emp_no = em.emp_no where to_date = '9999-01-...