Question: Specify the following additional queries on the database of Figure 3.5 in SQL. Show the query results if applied to the database of Figure 3.6.
(a) For each department whose average employee salary is more than $30,000, retrieve the department name and the number of employees working for that department.
(b) Suppose we want the number of male employees in each department rather than all employees (as in Exercise 5.4a). Can we specify this query in SQL? Why or why not?
Step by Step Solution
3.39 Rating (174 Votes )
There are 3 Steps involved in it
a SELECT DNAME COUNT FROM DEPARTMENT EMPLOYEE WHERE DNU... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
888-CS-DB (2291).docx
120 KBs Word File
