Which of the following DB2 objects is NOT considered executable using SQL?
-
Routine
-
Function
-
Procedure
-
Trigger
D
Correct answer
Explanation
DB2 distinguishes between executable objects and event-driven objects. Routines, functions, and procedures are all executable using SQL statements like CALL or SELECT. However, triggers are not directly executed - they are defined to fire automatically when specific events (INSERT, UPDATE, DELETE) occur on a table. You cannot explicitly invoke a trigger with a SQL statement; it responds to data modification events. This is a fundamental architectural difference in how these objects operate.