Give the exact syntactic rules for constructing the triggering graphs from the sets of SQL triggers and foreign-key constraints.

What will be an ideal response?


For each SQL trigger the activating event is an update, deletion, or insertion of/from/into the relation speci?ed in the CREATE TRIGGER ...BEFORE/AFTER ... ON Tab l e clause. Whether the actually event must be an update, deletion or insertion depends on what is speci?ed in the BEFORE/AFTER clause. The events produced by the trigger are updates, insertions, and deletions on the relations speci?ed in the action part of the trigger. (The exact type of the event depends on the form of the action speci?ed.)
Note that a trigger with the FOR EACH STATEMENT clause produces only one event, while a trigger with the FOR EACH ROW clause produces one event per updated/inserted/deleted tuple (whichever applies).
For a foreign-key constraint, the activating event is any update or deletion that involves the relation mentioned in the REFERENCES clause and the events produced are updates or deletions on the relation mentioned in the CREATE TABLE statement,
which this foreign key is part of.
The triggering graph then consists of the edges among all these triggers and foreign-key constraints. An edge is drawn from one trigger/constraint T to another, S, if T produces an event that activates S.

Computer Science & Information Technology

You might also like to view...

Which of the following statements are correct?

``` a. char[][] charArray = {'a', 'b'}; b. char[2][2] charArray = {{'a', 'b'}, {'c', 'd'}}; c. char[2][] charArray = {{'a', 'b'}, {'c', 'd'}}; d. char[][] charArray = {{'a', 'b'}, {'c', 'd'}}; ```

Computer Science & Information Technology

What is the best way to make sure data is properly encrypted while in transit?

A. Install an SNMP agent. B. Make sure sensitive pages require authentication. C. Use the"secure"flag on all sensitive cookies. D. Scrub all user input to make sure no invalid characters are passed in an SQL statement.

Computer Science & Information Technology

The question mark (?) operator indicates

(a) either zero or one occurrence. (b) any number of occurrences. (c) one or more occurrences. (d) more than one occurrence.

Computer Science & Information Technology

Produce a physical database design for a relational DBMS you have access to. Implement this physical database design.

What will be an ideal response?

Computer Science & Information Technology