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);
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);
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 22RA
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Step 1
VIEWTrending now
This is a popular solution!
Step by step
Solved in 1 steps
Knowledge Booster
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.Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage