Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DA 2.11: From question to query

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

50 minutes

A question that is too vague

The head of Year 9 asks: "Who goes to clubs a lot?" How much is a lot? Which month? Which clubs?

A search can only answer a question that has been made exact.

Key words

WordWhat it means
Purposewhat the query must find out
Parametera detail that limits a query, such as a month or a count
Querya question you ask a database
SQLthe language used to search tables
Aggregatea figure worked out from many rows, such as a count
Grouprows put together by a shared value
Databasean organised store of data that you can search

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can turn a vague question into an exact query and run it.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

First identify and assess the purpose

Ask what the answer is for and who reads it. Then list the parameters: the time period, the group, the measure and the limit.

Write the question again, exact: "Which Year 9B pupils came to three or more club sessions in March 2026?"

Parameters of the exact question

ParameterValue
GroupForm 9B
Time periodMarch 2026
MeasureCount of sessions per pupil
Limit3 or more

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

8 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.