Content deleted Content added
m added a reference for benefits of Views |
No edit summary |
||
Line 18:
* Views can [[Join (SQL)|join]] and simplify multiple tables into a single virtual table.<ref name="SQL-reference-groff-weinberg" />
* Views can act as aggregated tables, where the [[database engine]] aggregates data ([[summation|sum]], [[average]], etc.) and presents the calculated results as part of the data.
* Views can hide the complexity of data. For example, a view could appear as
* Views take very little space to store; the database contains only the definition of a view, not a copy of all the data that it presents.
* Structures data in a way that classes of users find natural and intuitive.<ref name="SQL-reference-groff-weinberg"/>
Line 26:
== Read-only vs. updatable views ==
Views can be defined as
Some systems support the definition of INSTEAD OF [[Database trigger|triggers]] on views. This technique allows the definition of other logic for execution in place of an insert, update, or delete operation on the views. Thus database systems can implement data modifications based on read-only views. However, an INSTEAD OF trigger does not change the read-only or updatable property of the view itself.
|