Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Write Less (Code) With More (Features) [UKOUG 22]
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