A view is a virtual table that consists of columns from one or more tables. Though it is similar to a table, it is 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
syntax:
CREATE VIEW vwCustomer
AS
SELECT CustomerId, Company Name, Phone
FROM Customers
For more information, see the below link..
http://www.sql-server-performance.com/articles/dev/views_in_sql_server_p1.aspx
No comments:
Post a Comment