SQL SELECT and FROM
SELECT lists the fields to show and FROM names the table. This returns the name and age columns for every record in students. SELECT * shows all columns. End with a semicolon.
Understanding SQL SELECT and FROM in VCE Spreadsheets, SQL & Visualisation
What it does: SELECT lists the fields to show (title, year) separated by a comma, and FROM names the movies table. The statement ends with a semicolon. The asterisk * is the wildcard that means all columns. 'all' is not valid here. With no WHERE condition, the query returns the chosen columns for every record in the table. A semicolon marks the end of the statement. A full stop is not used. FROM must come before the table name. Without it the query is incomplete and will give an error. When you list more than one field after SELECT, you must separate them with commas, otherwise SQL can't tell them apart.
Common mistakes: FROM is spelled wrong. The keyword that names the table is FROM, so the line should be FROM students;. The statement is missing its semicolon. A SELECT statement should end with ; so the line should be FROM students;.
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 45–54) and word search (Modules 35–54).
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 name, age FROM students;Fill in the Blanks
Spot the Error
Student with a class code? Join your class →