What is trigger in sql? Explain



What is trigger in sql? Explain..

Answer / Azeen Zehra Naqvi

A trigger is a SQL statement that automatically runs in response to certain events such as insert, update, or delete on a specific table. Triggers help maintain the integrity of the database and are used for auditing purposes and enforcing business rules.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

Can you sum a count in sql?

1 Answers  


what is cross join? : Sql dba

1 Answers  


how to find the second highest salary from emp table?

211 Answers   CIS, Cognizant, Cosmosoft, DAS, EDS, GreenTech, HOV Services, IBM, Infosys, National Institute of Science and Technology, Patni, Persistent, Polaris, TCS, Wipro, Yardi, Zensar,


Mention what does the hierarchical profiler does?

1 Answers  


i have table T!. A B C D NULL 1 2 3 4 NULL 5 6 7 8 NULL 9 10 11 12 NULL. I WANT COUNT OF NULL VALUES IN TABLE. WRITE A QUERY.

14 Answers   iGate, Wipro,


Display the total debit counts, total credit counts, sum of total debits, sum of total credits from an employee's transaction table (a single table) containing the following columns. Transaction_number Transaction_amount Transaction_date Transaction_type --> tells if the amount is a credit or a debit. As the query alone is important, the table is left with specifying just the field's name. Pls help me with this query.

3 Answers   iNautix, Oracle,


one of the column in my table contains the data like SAL ---- 1000 1000 2000 3000 3000 So my requirement is i want output like SAL --- 1000 2000 3000 it mean i want to delete duplicate rows only how should u write query?

9 Answers   TCS,


How many unique keys can a table have?

1 Answers  


i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this

1 Answers  


How can you load multi line records? : aql loader

1 Answers  


What is pl/sql and what is it used for?

4 Answers  


What is the diff between Truncate table / delete <table name> purge

3 Answers   TCS,


Categories