ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
What is a materialized view?
 Question Submitted By :: CRP
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is a materialized view?
Answer
# 1
In a database management system following the relational 
model, a view is a virtual table representing the result of 
a database query. Whenever an ordinary view's table is 
queried or updated, the DBMS converts these into queries or 
updates against the underlying base tables. A materialized 
view takes a different approach in which the query result 
is cached as a concrete table that may be updated from the 
original base tables from time to time. This enables much 
more efficient access, at the cost of some data being 
potentially out-of-date. It is most useful in data 
warehousing scenarios, where frequent queries of the actual 
base tables can be extremely expensive.

In addition, because the view is manifested as a real 
table, anything that can be done to a real table can be 
done to it, most importantly building indexes on any 
column, enabling drastic speedups in query time. In a 
normal view, it's typically only possible to exploit 
indexes on columns that come directly from (or have a 
mapping to) indexed columns in the base tables; often this 
functionality is not offered at all.

Materialized views were implemented first by the Oracle 
database.

There are three types of materialized views:

1) Read only

Cannot be updated and complex materialized views are 
supported 
2) Updateable

Can be updated even when disconnected from the master site. 
Are refreshed on demand. 
Consumes fewer resources. 
Requires Advanced Replication option to be installed. 
3) Writeable

Created with the for update clause. 
Changes are lost when view is refreshed. 
Requires Advanced Replication option to be installed
 
Is This Answer Correct ?    3 Yes 0 No
Muhammadrashidmughal
 
  Re: What is a materialized view?
Answer
# 2
**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.
**You can define a materialized view on a base table,
partitioned table or view and you can define indexes on a
materialized view.
**Materialized views are schema objects that can be used to
summarize, precompute, replicate, and distribute data. E.g.
to construct a data warehouse
 
Is This Answer Correct ?    1 Yes 0 No
Lekhrajdeshmukh
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
please tell me the query to get details of the employee having the second largest salary 247Customer8
What does the INSTEAD OF trigger do?  3
you are provided with the single table having say 4 col ie fname lname age city , now the all records with displying of only fname and lname is required but in this format say my name is abhay khanna it will come like this abhay-khanna rahul-roy gaurav-singh the above format is required  2
Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases?  2
What is blocking and how would you troubleshoot it? HCL2
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
how to get the automatic backup of the database in the sql server  3
what is the difference between Delete and Truncate Geo-Research-Centre3
employee table has employee id ----------- empid ---------------- 1 2 3 3 3 4 5 5 5 6 6 6 7 here the values r repeated two times.how to select the repeated values only.i.e 3,5,6 should alone come.  2
How do we get month name in SQL Server 2000, Oracle, MS Access?  9
How will u find the query which is running in some other machine IBM2
What is the difference between SSAS 2000 and SSAS 2005? APX1
Please get the 4 th maximum salary from a table without using any sql keyword (TOP,MAX are mot allowed)  5
How the data stores in a page?  1
What is a deadlock and what is a live lock? How will you go about resolving deadlocks? Microsoft1
how to get the rowid/rownumbes of a table in sqlserver IBM5
what are file groups? Evalueserve3
What is a table called, if it does not have neither Cluster nor Non-cluster Index?  1
Whether the updations made to the views reflect the original records in the table NIIT5
Can some one please help with a query which will take only max value of a column in a join.  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com