GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Database

 Print  |  
Question:  What is view? Types of views?use of views?how to create view(syntax)?



March 03, 2009 00:30:22 #6
 nithui   Member Since: February 2009    Total Comments: 4 

RE: What is view? Types of views?use of views?how to create view(syntax)?
 
View:
A view is a list of columns or a series of records retrieved from one or more existing tables, or as a combination of one or more views and one or more tables.

Types of Views:
a)
DataBase View
b) Help View
c) Projection View
d) Maintenance View


Use of views
A view provides the mechanism to hide certain data from the view of certain users.


Syntax:
use XXX (your database name)
GO
CREATE VIEW view1(view name)
AS
SELECT -------
-----------------(your query)
-----------------


     

 

Back To Question