Field order in the output of a SELECT
The output has only the fields named, as columns in the order written after SELECT, with a heading row of field names and one row per record kept (all records if there is no WHERE).
Understanding Field order in the output of a SELECT in IGCSE Computer Science Paper 2
What it does: The output columns follow the order written after SELECT, so points is the first column and firstName is the second. Without a WHERE, all records are kept, so one row appears for each of the 10 students under the heading house. Swapping the field order only changes the column order. The same records are still shown. The heading row shows the names of the fields selected. The data rows come after it.
Common mistakes: The comment says house comes first, but the fields are written in the wrong order, so the columns would be firstName then house. It should be SELECT house, firstName. Field names in a SELECT list must be separated by commas. The comma is missing, so it should be SELECT lastName, points.
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 525–538) and word search (Modules 500–538).
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 lastName, firstName FROM students;Fill in the Blanks
Spot the Error
Student with a class code? Join your class →