Question: Consider the following SQL query ( use the university schema in Figure 2 ) to find the names and average salaries of all departments whose
Consider the following SQL query use the university schema in Figure to find the names and average salaries of all departments whose average salary is greater than
select deptname from instructor where avgsalary group by deptname
Identify whether the query is correct or wrong. If the query is not correct explain what is wrong with the above query and correct it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
