Direction: Choose the correct option
Q1.
What is a single-row subquery?
Direction: Choose the correct option
Q2.
SELECT * FROM employees WHERE salary = (SELECT MAX(salary) FROM employees);What does this find?Direction: Choose the correct option
Q3.
SELECT MAX(salary) FROM employees WHERE salary < (SELECT MAX(salary) FROM employees);What does this find?Direction: Choose the correct option
Q4.
What happens if single-row subquery returns multiple rows?
Direction: Choose the correct option
Q5.
SELECT department, AVG(salary) FROM employees GROUP BY department HAVING AVG(salary) > (SELECT AVG(salary) FROM employees);What does this query do?