What is materialised View?
Answers were Sorted based on User's Feedback
Answer / narenkumar reddy
Mv is database object it contain the data stored physically
from select stmt of query
first time it will get the data base table next time onwards
based on refresh methods mv are created tables and views and
also mv
there three types of refresh methods
1.complete(the whole query execute)
2.fast(only modified records are updated target table i.e
incremental loading)
3.force(some times means when we r using agg function on
that time fast option is not working so we go for force option)
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / dinesh
A materialized view, or snapshot as they were previously known, is a table segment whose contents are periodically refreshed based on a query, either against a local or remote table.
CREATE MATERIALIZED VIEW view-name
BUILD [IMMEDIATE | DEFERRED]
REFRESH [FAST | COMPLETE | FORCE ]
ON [COMMIT | DEMAND ]
[[ENABLE | DISABLE] QUERY REWRITE]
[ON PREBUILT TABLE]
AS
SELECT ...;
Is This Answer Correct ? | 0 Yes | 0 No |
Main diff between varray and nested tablea
How to connect a sql*plus session to an oracle server?
What is difference sql and mysql?
Why is partition used in sql?
What is the main difference between a UNION statement and a UNION ALL statement? 1. A UNION statement eliminates duplicate rows; a UNION ALL statement includes duplicate rows. 2. A UNION statement can be used to combine any number of queries; a UNION ALL statement can be used to combine a maximum of two queries. 3. A UNION statement can only combine queries that have parallel fields in the SELECT list; a UNION ALL statement can combine queries with differing SELECT list structures. 4. A UNION statement cannot be used with aggregate functions; a UNION ALL statement can be used with aggregate functions. 5. There is no difference between the two statements; they are interchangeable.
Which version of sql do I have?
explain the advantages and disadvantages of stored procedure? : Sql dba
What is the order of sql select?
how to add a new column to an existing table in mysql? : Sql dba
What is the different between Stored Procedure and Procedure?
What is the function that is used to transfer a pl/sql table log to a database table?
how to do backup entire database? : Transact sql