Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to calculate average of average salary of departments?

SELECT 
    ROUND(AVG(average_salary), 0)
FROM
    (SELECT 
        AVG(salary) average_salary
    FROM
        employees
    GROUP BY department_id) department_salary;
Code language: SQL (Structured Query Language) (sql)
Source by www.sqltutorial.org #
 
PREVIOUS NEXT
Tagged: #How #calculate #average #average #salary
ADD COMMENT
Topic
Name
2+5 =