Without the MEDIAN function, find each department's median salary using ROW_NUMBER and COUNT windows. Return dept_id and median_salary (departments with staff, not NULL).
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.