Table aliases in a join
Gives the students table the short name s after FROM, so the rest of the query can write s.firstName instead of students.firstName.
Understanding Table aliases in a join in ACARA Digital Technologies Years 9–10
What it does: s.firstName and r.mark use the aliases defined in FROM and JOIN instead of the full table names. Using s and r is much quicker to type than students.studentId = results.studentId, and it means the same thing. The table name comes first, then the alias: FROM students s. The alias is the short name that follows the table. After an alias is set, use it everywhere in the query. Write s.firstName, not students.firstName.
Common mistakes: The students table was given the alias s in the FROM line, so the rest of the query must use s. The first line should be SELECT s.house, r.mark. The products table was given the alias p, but the SELECT uses pr, which was never defined. It should be p.name.
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 459–475) and word search (Modules 459–534).
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
FROM students sFill in the Blanks
Spot the Error
Student with a class code? Join your class →