What is the relation b/w view and trigger
Answers were Sorted based on User's Feedback
Answer / rajesh venati
View are classified in to two types.
1. Simple View
2. Complex View
==>DML Operations are not possible in complex views, because,
if u create a view more than one table or
if u create a view using group function or
if u create a view using distinct keyword etc.,
those are called complex view.
If u want perform DML Operations on Complex Views, then we
will go for Instead of Trigger.
Through the Instead of Triggers we can perform DML
Operations on a Complex View.
| Is This Answer Correct ? | 31 Yes | 1 No |
Answer / bmk
Both are database objects and it behaves diff.View doesn't
contain data and tied with sql.Trigger is an event,trigger
will create on table with after/before with DML operations.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / vivekanandhan
view is used to minimize the complex query of table(s), thru view we can do insert,update,delete where as trigger is an event which will execute automatically when any DML operations provided against the table.
| Is This Answer Correct ? | 0 Yes | 0 No |
how to use like conditions? : Sql dba
What is range partitioning?
How do you determine the current isolation level? : Transact sql
what is self join and why is it required? : Sql dba
what is the Default Libraries for Oracle Report 6i
how to see the oracle 9i/10g table in pc? or In my pc where the table is saved and how to see?
What is sql server and ase?
Can cursors be part of a trigger body?
What is normalization ?
9 Answers BirlaSoft, CTS, HCL,
write sub query for eliminating duplicate rows using analytical function?
Which tcp/ip port does sql server run?
Which is the best place to learn hadoop?
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)