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 2) to find the names and average salaries of all departments whose average salary is greater than 50,000.
select dept_name from instructor where avg(salary)>50,000 group by dept_name
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 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!