Answered step by step
Verified Expert Solution
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
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 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started