Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

undefined Examine the data in the EMPLOYEE relation below: 100 EMPLOYEE Name Deptid Salary John Doe 42000 Jane Doe 200 35000 Ryan Doe 300 65000

image text in transcribedundefined

Examine the data in the EMPLOYEE relation below: 100 EMPLOYEE Name Deptid Salary John Doe 42000 Jane Doe 200 35000 Ryan Doe 300 65000 Mary Doe 200 67000 Which of the following subqueries will execute properly without errors? (choose two) SELECT distinct (DeptID) FROM Employee WHERE Salary > ANY (SELECT AVG(Salary) FROM Employee GROUP BY DeptID); SELECT DeptID FROM Employee WHERE Salary > ALL (SELECT AVG(Salary) FROM employees GROUP BY AVG(SALARY) ); SELECT * FROM Employee WHERE Salary - (SELECT AVG(Salary) FROM Employee GROUP BY Deptid); SELECT FROM EMPLOYEE WHERE Salary > (SELECT MIN(Salary) FROM Employee GROUP BY DeptID); SELECT DeptID FROM Employee WHERE Salary > ALL (SELECT AVG(Salary) FROM Employee GROUP BY Deptid)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

4. What decision would you make and why?

Answered: 1 week ago