NESTED GROUP FUNCTIONS (2 levels deep) Group functions may only be nested two levels deep. An example could be the following : select SUM(AVG(salary)) from employees group by department_id; So, first of all, let’s determine what this SQL statement with two nested group functions is supposed to do? Obviously, the […]