MicrolearnENPTES

Counting rows

Lesson 9 of 24 · SQL.Micro

Check yourself

Aggregate functions turn many rows into one value. COUNT is the simplest: how many rows match?

COUNT(*) counts rows; COUNT(email) counts only non-NULL emails.

Check yourself

A column has 10 rows, 3 of them NULL. What is COUNT(column)?

How many orders have status 'delivered'? Return a single number.

Do it in the browser: a real SQL tool, a short mission and instant feedback. No install.

Start this lesson — free
← Missing values: NULLSUM, AVG, MIN and MAX →

All lessons · SQL.Micro