Kodewick
Start learning →
Starter←→0 / 70

Head count

#024StarterAggregates2 min

To book seats on the school bus, we need to know how many students there are. Work out how many rows the students table has; the result is a single number.

The tables
students
idnameclassagecity
1Amy1A12Leeds
2Ben1A13York
3Cara1B12NULL
4Dan1B14Leeds
5Eva1A12Hull
6Finn1C13NULL
7Gus1C12York
7 rows
scores
idstudent_idsubjectscore
11math92
21art78
32math65
42art88
53math74
64math55
74art90
85math81
95artNULL
107math99
10 rows
query.sql
-- your code here: COUNT(*) to count the rows
SELECT name
FROM students;
Ctrl + Enter runs too
Result

Run shows what your query gives. When it looks right, Submit.