Question: Using SQL: Write a query to display the department name, location name, number of employees, and the average salary for all employees in that department.

Using SQL: Write a query to display the department name, location name, number of employees, and the average salary for all employees in that department. Label the columns dname, loc, Number of People, and Salary, respectively. The EMP table has the following columns: EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO

and the DEPT table has the following columns: DEPTNO, DNAME, LOC

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!