Practice · Education · Easy

How many universities?

Return a single number: the count of universities in the table, as a column named n.

Runs in your browser. No signup needed.

What you are given

universities(...). Use COUNT(*).

Starting point

SELECT COUNT(*) AS n
FROM universities;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row.

Did you know

COUNT(*) counts rows; COUNT(column) skips NULLs in that column — a subtle but important difference. (SQLite docs)

More Education challenges

Open it in the playground →