GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Basics
Go To First  |  Previous Question  |  Next Question 
 Basics  |  Question 62 of 113    Print  
What is the difference between view and materialized view

  
Total Answers and Comments: 5 Last Update: December 18, 2008     Asked by: Aashish Jain 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 18, 2006 20:04:56   #1  
zskhan Member Since: June 2006   Contribution: 3    

RE: What is the difference between view and materializ...

view - store the SQL statement in the database and let you use it as a table. Everytime you access the view the SQL statement executes.

materialized view - stores the results of the SQL in table form in the database. SQL statement only executes once and after that everytime you run the query the stored result set is used. Pros include quick query results.

Zafar


 
Is this answer useful? Yes | No
June 28, 2006 11:20:33   #2  
ANIL        

RE: What is the difference between view and materializ...
hi VIEW : This is a PSEUDO table that is not stored in the database and it is just a query.MATERIALIZED VIEWS: These are similar to a view but these are permantely stored in the database and often refreshed. This is used in optimization for the faster data retrieval and is useful in aggregation and summarization of data.
 
Is this answer useful? Yes | No
July 03, 2006 04:59:17   #3  
Minal        

RE: What is the difference between view and materializ...

Normal Views are for Access purpose ie One need to give access the end user to specific data.

Materialized Views are to optimize the performance . WHen materialzied view are used in the queries stored results are fetched (Instead of fecthing from individual talbes) which improves the performance. Refreshing option for materialised view can be set.


 
Is this answer useful? Yes | No
July 13, 2006 02:26:34   #4  
vijay        

RE: What is the difference between view and materializ...

View is a logical reference to a database table. But Meterial View is actual table and we can refresh data in time intervels. If you made any change in database table that change will effect into view but not meterialize view..


 
Is this answer useful? Yes | No
December 18, 2008 04:17:59   #5  
mri_sonam Member Since: July 2008   Contribution: 19    

RE: What is the difference between view and materialized view

Views

A view takes the output of a query and makes it appear like a virtual table. You can use a view in most places where a table can be used.
All operations performed on a view will affect data in the base table and so are subject to the integrity constraints and triggers of the base table.

A View can be used to simplify SQL statements for the user or to isolate an application from any future change to the base table definition. A View can also be used to improve security by restricting access to a predetermined set of rows or columns.

In addition to operating on base tables one View can be based on another a view can also JOIN a view with a table (GROUP BY or UNION).

Materialized Views
Materialized views are schema objects that can be used to summarize precompute replicate and distribute data. E.g. to construct a data warehouse.

A materialized view provides indirect access to table data by storing the results of a query in a separate schema object. Unlike an ordinary view which does not take up any storage space or contain any data.

The existence of a materialized view is transparent to SQL but when used for query rewrites will improve the performance of SQL execution. An updatable materialized view lets you insert update and delete.


 
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