Question DB-SQL-0074
HardWhich query returns the departments where every employee earns more than 50000 (ignoring NULL salaries)?
- A.
SELECT DISTINCT dept FROM emp WHERE MIN(salary) > 50000
- B.
SELECT dept FROM emp GROUP BY dept HAVING MIN(salary) > 50000
- C.
Sign up free to see the answer and a step-by-step explanation.