Find the location that has average salary more than 4000 dollars. Usually each location mayhave several departments.A) select loc from dept, emp where dept.deptno = emp.deptno group by loc having avg(sal) > 4000;B) select loc from emp group by loc having avg(sal) > 4000;C) select loc from dept group by loc having avg(sal) > 4000;D) select loc from dept where deptno in (select deptno from emp group by loc having avg(sal) > 4000);E) select loc from dept where deptno in (select deptno from emp group by deptno having avg(sal) > 4000);

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 22RA
icon
Related questions
Question

Find the location that has average salary more than 4000 dollars. Usually each location may
have several departments.
A) select loc from dept, emp where dept.deptno = emp.deptno group by loc having avg(sal) > 4000;
B) select loc from emp group by loc having avg(sal) > 4000;
C) select loc from dept group by loc having avg(sal) > 4000;
D) select loc from dept where deptno in (select deptno from emp group by loc having avg(sal) > 4000);
E) select loc from dept where deptno in (select deptno from emp group by deptno having avg(sal) > 4000);

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 1 steps

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage