GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database
Go To First  |  Previous Question  |  Next Question 
 Database  |  Question 7 of 69    Print  
What is view? Types of views?use of views?how to create view(syntax)?

  
Total Answers and Comments: 6 Last Update: March 13, 2009     Asked by: chim 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 28, 2006 06:28:00   #1  
DIPTENDU HUI        

RE: what is view?types of views?use of views?how to cr...

1. View is nothing but parsed SQL statement which fetches record at the time of execution.

2.There are mainly two type of views

a) Simple View

b) Complex View

apart from that we can also subdivided views as UpdatableViews and Read only Views.

Lastly there is an another view named as Materialized Views.

3. View is used for the purposes as stated below:

a) Security

b) Faster Response

c) Complex Query solve

4.Syntax is :

Create or replace view([olumn1] [column2]...)

as

Select column1 column2...

from table_name

[where condition]

[with read only] [with check option]


 
Is this answer useful? Yes | No
March 05, 2006 04:33:01   #2  
Brajendra Nath Vimal        

RE: what is view?types of views?use of views?how to cr...
View:- View is the vertual or logical or the duplicate copy of the original table with schema parts only.Types Of Views:- i)Readable Viewii) Updatable ViewCreation of view:- Syntax:- Create view As Select A1 A2 ......... An From T1 T2 ............. Tn Where


 

Is this answer useful? Yes | No
March 18, 2006 12:04:27   #3  
sreyaskvmce&it Member Since: March 2006   Contribution: 6    

RE: what is view?types of views?use of views?how to cr...

A view may be thought of as a virtual table that is a table that does not really exist in its own right but is instead derived from one or more underlying base table. In other words there is no stored file that direct represents the view instead a definition of view is stored in data dictionary.
Growth and restructuring of base tables is not reflected in views. Thus the view can insulate users from the effects of restructuring and growth in the database. Hence accounts for logical data independence.

There are two type of views:

1 simple view

2 complex view


 
Is this answer useful? Yes | No
October 18, 2007 07:17:44   #4  
sari_pot Member Since: October 2007   Contribution: 7    

RE: What is view? Types of views?use of views?how to c...
A view is a virtual table whose contents are defined by a query.As per sql server 2005 we can create standard indexed and partitioned views.
 
Is this answer useful? Yes | No
November 29, 2007 01:17:15   #5  
srvardhan Member Since: November 2007   Contribution: 1    

RE: What is view? Types of views?use of views?how to create view(syntax)?
The dynamic result of one or more relational operations operating on base relations to produce new relation.

creating view: create view View_Name as select query.

Basically we use views for 1. to reduce the complexity in writing queries --> go with view resolution
2. To improve performance --> go with materializing view (remember if the frequency of executing select query is more than the frequency of updating then only go with this)

Rajavardhan Sarkapally

 
Is this answer useful? Yes | No
March 12, 2009 00:30:22   #6  
nithui Member Since: February 2009   Contribution: 27    

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)
-----------------



 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape