GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL Plus
Go To First  |  Previous Question  |  Next Question 
 SQL Plus  |  Question 117 of 132    Print  
how many types of data base triggers are there, what is cascading
how many types of queries are there

  
Total Answers and Comments: 3 Last Update: January 24, 2007     Asked by: san 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 04, 2006 12:48:35   #1  
rampratap409 Member Since: September 2006   Contribution: 111    

RE: how many types of data base triggers are there, ...

Triggers

Basicaly only two type trigger are: Database trigger and Applicaton trigger

database trigger: on table (before after update insert delete row level statement level) 2 * 3 * 2 12 triggers

Application trigger/system triggers ( after logon before logoff after startup before shutdown on error on ddl ) so 12 + 6

queries: subquery inline query co-related query


 
Is this answer useful? Yes | No
December 04, 2006 12:51:56   #2  
rampratap409 Member Since: September 2006   Contribution: 111    

RE: how many types of data base triggers are there, ...

cascading is used where primary/foreign key relation:

by using cascade we can delete child record or can be set to null or default values


 
Is this answer useful? Yes | No
January 24, 2007 02:12:15   #3  
raghav_sy Member Since: January 2007   Contribution: 38    

RE: how many types of data base triggers are there, ...
hi some additions to Ram pratap answer:There are actually two types of triggers: DATABASE and APPLICATION triggers.Database triggers are of three types:1)DML trigeers: we can have a total of 12 DML trigger. ( 3 triggers based on statement i.e. INSERT UPDATE DELETE * 2 triggers based on timing i.e. BEFORE and AFTER * 2 triggers based on levels i.e. ROW and STATEMENT 12)2)Instead of trigger: used for updating views based on join condition.3)System trigger: these are the triggers whcih fire on DDL or database events.answer for the remaining two question is same as to what ram has written.cheers.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape