Posted by: M$Hacks March 26, 2009
SQL help
Login in to Rate this Post:     0       ?        
SELECT department_name as dname, location_name as loc, sum(employees) as number_of_employees, average(salary) as salary
FROM Emp, Dept
WHERE  Emp.deptno=Dept.deptno
GROUP BY department_name;

Hope this helps!

Last edited: 26-Mar-09 02:26 AM
Read Full Discussion Thread for this article