18.4. How VIEWs Are Handled in the Database System
Standard SQL requires a system schema table with the text of the VIEW declarations in it. What would be handy, but is not easily done in all SQL implementations, is to trace the VIEWs down to their base tables by printing out a tree diagram of the nested structure. Check your user library and see if it has such a utility program (for example, FINDVIEW in the SPARC library for SQL/DS). There are several ways to handle VIEWs, and systems will often use a mixture of them. The major categories of algorithms are materialization and in-line text expansion.
18.4.1. View Column List
The <view column list> is optional; when it is not given, the VIEW will inherit the column names from the query. The ...
Get Joe Celko's SQL for Smarties, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.