SQL Output Prediction Easy +10 XP
COUNT Function
What does this query return?
SQLRead-only
SELECT COUNT(*) FROM employees WHERE department = 'Sales';
What is the output?
Show answer and explanation
Answer: Number of employees in Sales
COUNT(*) counts rows. The WHERE clause filters to only Sales department employees.
Hint: COUNT counts rows.
What this challenge tests
Output Prediction in SQL: aggregate, count.