Designing a query from a requirement
The three parts of a query design: which fields to show, which records match the criteria (using AND/OR), and how results are sorted, so the output meets the requirement.
Understanding Designing a query from a requirement in VCE Data Analysis
What it does: OR matches a record if at least one condition is true, which fits 'either' in the requirement. Sorting is the third part of the design. Descending puts the largest value first. Criteria decide which records match. Fields only decide which columns are shown in the results. Cheapest first means the lowest value comes first, which is ascending order. Show only the fields the requirement asks for. Extra fields make the output clutter and don't meet the requirement exactly. The year must always match (AND), while the subject can be either one (OR). Using OR for everything would also return students from other year levels.
Common mistakes: The requirement asks for Year 9 students, so the criteria must be Year = 9. Year = 10 would return the wrong records. A student cannot be in Year 7 and Year 8 at once, so AND returns no records. Use OR to match either year.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 68–80) and word search (Modules 56–80).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
Fields, Criteria, SortFill in the Blanks
Spot the Error
Student with a class code? Join your class →