What is a materialized view?

Answers were Sorted based on User's Feedback



What is a materialized view?..

Answer / muhammadrashidmughal

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

What is a materialized view?..

Answer / lekhrajdeshmukh

**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 ?    2 Yes 0 No

What is a materialized view?..

Answer / priya

join indexes are called as materialized view.these are created for frequently joining columns to improve the join query performance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

In which tcp/ip port does sql server run? Can it be changed?

0 Answers  


Explain ranking functions?

0 Answers  


Display a roll having miminum marks in two subjects?

7 Answers   Patni,


Can you index views?

0 Answers  


How to use subqueries with the in operators in ms sql server?

0 Answers  






Explain the purpose of indexes?

0 Answers  


How do I find information about the install locations for the various instances running on a computer?

0 Answers  


What are the advantages of using a stored procedure?

0 Answers  


i have a table like this Eno ename 1 a 2 b 3 c i want to display ename and bossname from table hint boss is also an employee

3 Answers   NIIT,


What is the difference between stored procedure and functions?

0 Answers   MCN Solutions,


table:employee EID ENAME MID(manager ids) 101 rama null 102 sita 101 103 siva 101 104 ganesh 103 . . . . . . for 103 ID the manager ID is 101(RAMA) and for 104 manager is SIVA if i give employee id (EID) you have to tell the manager for that EID write query? eample:if i give 102 .The query output should be manager for 102 ID that it should print RAMA as output

7 Answers  


How to transfer an existing table from one schema to another schema in ms sql server?

0 Answers  


Categories