Running an SQL query in a database tool
Type an SQL statement in the tool's query window, run it, then read the results table. If an error shows, read the message and fix the statement.
Understanding Running an SQL query in a database tool in ACARA Digital Technologies Years 7–8
What it does: The statement is typed in the query window and run, and the results table lists only students with more than 100 points. The message names the problem. The table is called students, so the spelling in FROM must match it. Error messages tell you what went wrong. Read them, fix the statement, then run it again. SELEC is spelled wrong, so the tool shows an error. SELECT must be spelled correctly. Always run it again and read the results to check that the fix worked. Reading the error message points to the unknown table name, which tells the student what to fix.
Common mistakes: Text values must be in quotes. Without them the tool reads Red as a field name and shows an error. It should be WHERE house = 'Red'. Sorting needs the keywords ORDER BY. The word BY is missing, so the tool shows a syntax error. It should be ORDER BY lastName;.
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 331–360) and word search (Modules 331–411).
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
SELECT * FROM students;Fill in the Blanks
Spot the Error
Student with a class code? Join your class →