Question DB-SQL-0029
EasyWhat does this query return for the table below?
Table staff:
| id | name | dept | salary |
|---|---|---|---|
| 1 | Ravi | IT | 50000 |
| 2 | Meena | HR | 40000 |
| 3 | John | IT | 60000 |
| 4 | Sara | Sales | 45000 |
| 5 | Ali | HR | 38000 |
SELECT COUNT(DISTINCT dept) FROM staff;
- A.
2
- B.
1
- C.
Sign up free to see the answer and a step-by-step explanation.