Get in touch

Salary Per Department

Z

Demonstrated Features

  • Chart

Required Skills

  • Basic SQL Queries

Required License

  • Premium

The chart query can be edited in the App Manager (docs).

select	dname			as "Department"
,	count(empno)		as "#Employees"
,	sum(ifnull(sal,0))	as "Total Salary"
,	avg(ifnull(sal,0))	as "Average Salary"
from emp right join dept on emp.deptno = dept.deptno
group by dname
order by dname

Unlock the possibilities of your WordPress dashboard