SQL CREATE VIEW
Saves a SELECT query as a named virtual table. It shows chosen columns and rows, can hide others, and stores no copy of the data, so you query it like a table.
Understanding SQL CREATE VIEW in QCE Digital Solutions Unit 2
What it does: The view lists only studentId and firstName, so columns such as lastName and points are hidden from anyone who queries the view. DROP VIEW deletes only the saved query. The students table and all of its rows remain, because the view never held its own copy of the data. The syntax is CREATE VIEW name AS followed by a SELECT query. The word AS joins the view name to the query. A view is queried like a table, so you put its name after FROM. Views limit what users see, which helps protect sensitive columns. They do not copy or back up data.
Common mistakes: The AS keyword is missing. A view is created with CREATE VIEW name AS followed by the SELECT query, so line 1 should be CREATE VIEW year7 AS. Text values in a WHERE condition need quotes. Without them SQL reads Red as a column name. It should be WHERE house = 'Red';.
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 186–228) and word search (Modules 144–228).
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 →