Possible Duplicate:
What are views good for?
hi, i have a doubt what is a view. where should we use and what is the use of view. is there any good reference for views. thank you
Possible Duplicate:
What are views good for?
hi, i have a doubt what is a view. where should we use and what is the use of view. is there any good reference for views. thank you
See Views in SQL Server for a good overview.
A view is a virtual table that consists of columns from one or more tables. Though it is similar to a table, it is not stored in the database. It is a query stored as an object. Hence, a view is an object that derives its data from one or more tables. These tables are referred to as base or underlying tables.
Views are essentially "Queries" that you can select from without touching the main tables.
Any select query that you normally do (multiple tables, functions, etc.) could be a view.
There are two main advantages of views.
The first is that they allow you to reuse common ways of looking at the data without having to write the same complex SQL over and over (ie, modularization).
The second is that you can tighten security on the source tables for the particular user while allowing them to see the data through the views.
In addition to the other answers another advantage of Views can be data independence. It is sometimes possible to change the structure of the database without altering existing applications by providing a View simulating the old structure.
(Following your comment to another answer) If the View does not itself meet the criteria for an Updatable View then this may require the use of INSTEAD OF triggers.