Counting with COUNT
COUNT tells you how many rows match your query.
Count all rows:
Count non-null values in a column:
Count with conditions:
COUNT(*) counts all rows, even with NULL values.
Check your understanding
How many employees are in the database?
Examples run on the employees sample database. Open any of them in the playground to experiment.