CREATE VIEW
Saves a SELECT query under a name so you can query it like a table. A view stores the query, not a copy of the data, so it always shows current rows. Remove it with DROP VIEW.
Understanding CREATE VIEW in QCE Digital Solutions Unit 2
What it does: The SELECT inside the view contains a JOIN with an ON condition. Querying student_marks then needs no join code. The view name goes in the FROM clause. The query runs against the current data in the underlying tables, so it always shows up-to-date rows. A view saves typing and keeps the query consistent. It does not store a one-off result.
Common mistakes: A view over a join still needs a correct ON condition. The foreign key results.studentId must equal the primary key students.studentId, so it should be ON s.studentId=r.studentId;. CREATE VIEW needs the keyword AS before the SELECT query it saves. The line should be CREATE VIEW stock_low AS.
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 305–336) and word search (Modules 234–409).
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
CREATE VIEWFill in the Blanks
Spot the Error
Student with a class code? Join your class →