StudyBrixFree worksheets, study guides and courses

Computer science · lesson 2 of 4

SELECT, filtering and sorting

A query clause that specifies values to return.

University8 practice questionsNotes + worked examples

Learn the ideas

Prerequisites: Basic computing and simple data tables.

SELECT

A query clause that specifies values to return.

WHERE

A clause that filters rows using a condition.

ORDER BY

A clause that defines the requested result ordering.

Aggregate

A calculation such as COUNT or SUM that summarizes multiple rows.

Worked examples

Example 1

Which term best matches this description: A query clause that specifies values to return.

SELECT is the matching concept in this lesson.

SELECT

Example 2

Which term best matches this description: A clause that filters rows using a condition.

WHERE is the matching concept in this lesson.

WHERE

Check your understanding

8 questions

Decimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.

1 Which term best matches this description: A query clause that specifies values to return.

Show answer and explanation

SELECT

SELECT is the matching concept in this lesson.

2 Which term best matches this description: A clause that filters rows using a condition.

Show answer and explanation

WHERE

WHERE is the matching concept in this lesson.

3 Which concept would you apply first in a situation where a clause that defines the requested result ordering.

Show answer and explanation

ORDER BY

The scenario directly calls for ORDER BY.

4 Name the concept described as: A calculation such as COUNT or SUM that summarizes multiple rows.

Show answer and explanation

Aggregate

The intended concept is Aggregate.

5 Which statement about SELECT is most accurate?

Show answer and explanation

A query clause that specifies values to return.

The definition in the lesson notes gives the required condition.

6 Explain one important difference between SELECT and WHERE.

Sample answer and marking guidance

SELECT: A query clause that specifies values to return. WHERE: A clause that filters rows using a condition.

Credit a clear distinction using both definitions and an appropriate example if supplied.

7 Give a short example showing how ORDER BY would be used in practice.

Sample answer and marking guidance

A valid example should demonstrate this idea: A clause that defines the requested result ordering.

Credit a relevant scenario that applies the concept rather than merely naming it.

8 Summarize why Aggregate matters in the lesson “SELECT, filtering and sorting”.

Sample answer and marking guidance

Aggregate matters because A calculation such as COUNT or SUM that summarizes multiple rows.

Credit the core purpose, scope and any important limitation from the notes.

Further reading and review references

These are reference links, not copied exercises, institutional endorsement or proof of independent review.