September 2010
Intermediate to advanced
1704 pages
111h 8m
English
Views are a logical way of viewing data in the underlying physical tables. They are tied to a SELECT statement that retrieves data from one or more tables or views in the same database or a different database. In most cases, there is no physical storage of data associated with the view, and the SELECT that is associated with the view is run dynamically whenever the view is referenced.
The following T-SQL statement can be used to create a simple view in the Adventureworks2008 database:

The vw_CustomerAddress view in this example selects from four different tables in the Adventureworks2008 database: Sales.Customer, Person.Person ...
Read now
Unlock full access