Query criteria with comparison operators
A criterion that limits a query to records where the condition is true, so only Score values above 80 are shown. Compare with =, <>, <, >, <=, >=. Text goes in quotes.
Understanding Query criteria with comparison operators in Years 7–8 Data & Information
What it does: The = operator checks that the Year matches 8 exactly. Numbers do not need quotes. Text values such as Blue are written in quotes so the query treats them as text, not as a field name. > means strictly greater than, so 80 is left out. >= would include students who scored exactly 80. <> means 'not equal to'. Less than or equal to is written <=. A criterion is a test. Records that pass it (true) are shown and the rest are hidden. The data itself is not changed. <> excludes only Year 8, so Years 7, 9 and others are shown. < 8 would only show years below 8.
Common mistakes: The comment says only Score values above 80 should show, but < keeps scores below 80. It should be WHERE Score > 80;. A query criterion uses a single = to test for equal values. Double == is not used in a query. It should be WHERE Year = 7;.
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 47–80) and word search (Modules 9–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
WHERE Score > 80Fill in the Blanks
Spot the Error
Student with a class code? Join your class →