Professional Documents
Culture Documents
SQL Practical 5
SQL Practical 5
Views
Database only stores the query expression associated with the view relation. View
relation is created whenever needed, on demand.
Views can be created from existing views also.
Materialized Views: Storing whole view and updating when table changes.
Updateable Views:
o The from clause has only one database relation.
o The select clause contains only attribute names of the relation, and does not
have any expressions, aggregates, or distinct specification.
o Any attribute not listed in the select clause can be set to NULL, if it does not have
a not null constraint.
o The query does not have a group by or having clause.