January 2008
Intermediate to advanced
384 pages
8h 1m
English
Unlike base tables, VIEWs are either updatable or read-only, but not both, INSERT, UPDATE, and DELETE operations are allowed on updatable VIEWs and base tables, subject to any other constraints, INSERT, UPDATE, and DELETE are not allowed on read-only VIEWs, but you can change their base tables, as you would expect.
An updatable VIEW is one that can have each of its rows associated with exactly one row in an underlying base table. When the VIEW is changed, the changes pass through the VIEW to that underlying base table unambiguously. Updatable VIEWs in Standard SQL are defined only for queries that meet these criteria:
Built on only one table
No GROUP BY clause
No HAVING clause
No aggregate functions
No calculated ...
Read now
Unlock full access