Question DB-SQL-0011
MediumTable employee:
| id | name | dept | salary |
|---|---|---|---|
| 1 | Asha | HR | 40000 |
| 2 | Ravi | IT | 60000 |
| 3 | Meena | IT | 75000 |
| 4 | John | Sales | 50000 |
| 5 | Priya | IT | 60000 |
| 6 | Karan | Sales | NULL |
Which departments does this query list?
SELECT dept FROM employee
GROUP BY dept
HAVING COUNT(*) > 2;
- A.
HR, IT and Sales
- B.
IT and Sales
- C.
Sign up free to see the answer and a step-by-step explanation.