Exam 9: Database Triggers

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

To remove a trigger from the system, the DEL TRIGGER statement is used. _________________________

Free
(True/False)
4.9/5
(28)
Correct Answer:
Verified

False

Discuss three critical pieces of information regarding the WHEN clause of a trigger.

Free
(Essay)
4.8/5
(37)
Correct Answer:
Verified

First, a WHEN clause can be used only in row level triggers. Second, the values checked in the WHEN clause must reference correlation identifiers. Third, the condition must be enclosed in parentheses.

The ___________________________ level option is applicable only for UPDATE and DELETE events.

Free
(Short Answer)
4.9/5
(31)
Correct Answer:
Verified

row

How can triggers be applied to accomplish referential integrity?

(Essay)
4.8/5
(34)

To rebuild a database from a script, if you are using SQL Developer, open the file and click the ____________________ button.

(Short Answer)
5.0/5
(32)

The trigger body is a PL/SQL block that contains the actions that take place when the trigger fires.

(True/False)
4.8/5
(33)

What is the difference between a mutating table and a key-preserved table?

(Essay)
4.8/5
(31)

LONG RAW variables cannot be declared in triggers. _________________________

(True/False)
4.9/5
(38)

CREATE OR REPLACE TRIGGER logon_trg AFTER logon ON SCHEMA BEGIN INSERT INTO bb_audit_logon VALUES (USER, SYSDATE); END; In the code fragment above, which of the ____ statement represents the system event.

(Multiple Choice)
5.0/5
(31)

The default timing of a trigger is ____.

(Multiple Choice)
4.8/5
(39)

Which of the following indicates that the trigger is fired only once, regardless of the number of rows affected by the DML statement?

(Multiple Choice)
4.9/5
(41)

A database trigger is tied to a database table or view and is implicitly fired by the database system when that table or view is affected with the associated DML action.

(True/False)
5.0/5
(29)

A(n) ____ trigger fires whenever the event occurs, regardless of the schema in which it occurs.

(Multiple Choice)
4.9/5
(38)

The default timing of a trigger is ___________________________ level and no code is included to achieve this timing.

(Short Answer)
4.8/5
(40)

A(n) ____ is a table that is being modified by a DML action when a trigger is fired.

(Multiple Choice)
4.7/5
(30)

The WHEN clause of a trigger can be used only in row level triggers. _________________________

(True/False)
4.9/5
(37)

___________________________ are clauses available within a trigger to allow separate handling of different database triggering events within a single trigger.

(Short Answer)
4.9/5
(33)

The statement ____ correctly deletes a trigger.

(Multiple Choice)
4.8/5
(33)

A(n) mutating table is one that is referenced via a foreign key constraint on the table that a trigger is modifying. _________________________

(True/False)
4.9/5
(33)

LONG or LONG RAW variables can be declared in triggers and the NEW and OLD qualifiers cannot refer to these types of columns.

(True/False)
4.7/5
(44)
Showing 1 - 20 of 54
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)