how to insert the data through views? The view is depending
upon more than two tables?
how to update materalized views?
Answers were Sorted based on User's Feedback
Answer / rajesh venati
If we create a view on more than one table, or using
distinct keyword or use any group functions it is called
complex view.
If we want perform DML operations on complex views the we
will go for Instead of Triggers.Through the instead of
triggers we can perform DML operations on complex views.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / monika
by creating instead of trigger on table,we can update base
table through view
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / manikanta.srinu
DML Operations also is done by the view,if view have only
one table.For multiple tables in a view,DML operation was
not support.
how to update materalized views?
If ur master table is updated, your materialized view will
automatically get refreshed if ur materialized view is
create with ON COMMIT option. Else, you
have to REFRESH evertime once ur master is
inserted/deleted/updated.
CREATE MATERIALIZED VIEW departments FOR UPDATE AS
SELECT * FROM departmentsworld;
| Is This Answer Correct ? | 1 Yes | 4 No |
Can we join tables without foreign key?
How to make a copy values from one column to another in sql?
How you improve the performance of sql*loader? : aql loader
How do you create a unique index?
what are all the different normalizations? : Sql dba
Define commit?
i have xml source. xml source having lacks of records. i want extract/retrive xml source data using sql query. please tell me how to write query.
what is unique key constraint? : Sql dba
function can return value ,procedure also return value through out parameter then what is the difference?
what is the use of double ampersand (&&) in sql queries?
how to create a new table by selecting rows from another table in mysql? : Sql dba
Write a sql query to convert all character to uppercase after hypen.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)