1. Write Less (Code)
With More (Features)
Oren Nakdimon
www.db-oriented.com
oren@db-oriented.com
+972-54-4393763
@DBoriented
select department_id,
count(*) number_of_employees,
avg(salary) avg_salary
from employees
group by department_id
having max(salary) > 2 * min(salary)
Can you
read this
query easily?
If not, please
sit closer