Question DB-SQL-0008
EasyTable 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 |
How many rows does this query return?
SELECT name FROM employee WHERE dept = 'IT';
Enter a number as the answer.
Show answer and explanation
Answer: 3
Three employees work in IT (Ravi, Meena and Priya).