Search posts...
with a as (select max(e.salary) s from db_employee e join db_dept d on e.department_id = d.id and d.department in ('engineering','marketing') group by e.department_id) select max(s)- min(s) from a;
silver