Computer science · University
SELECT, filtering and sorting
A query clause that specifies values to return.
Prerequisites
Basic computing and simple data tables.
Study notes
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
Which term best matches this description: A query clause that specifies values to return.
SELECT is the matching concept in this lesson.
SELECT
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
Which concept would you apply first in a situation where a clause that defines the requested result ordering.
- Aggregate
- WHERE
- SELECT
- ORDER BY
Name the concept described as: A calculation such as COUNT or SUM that summarizes multiple rows.
Which statement about SELECT is most accurate?
- A calculation such as COUNT or SUM that summarizes multiple rows.
- A clause that defines the requested result ordering.
- A clause that filters rows using a condition.
- A query clause that specifies values to return.
Explain one important difference between SELECT and WHERE.
Answers and marking guidance
Answers and marking notes
- ORDER BY
The scenario directly calls for ORDER BY.
- Aggregate
The intended concept is Aggregate.
- A query clause that specifies values to return.
The definition in the lesson notes gives the required condition.
- 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.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.