Triggers can not be used for

  1. Validate input data

  2. Automatically generate values for newly inserted rows

  3. support alerts

  4. To Implement Referential Integrity


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Validate input data - This option is incorrect. Triggers can be used to validate input data. Triggers can be set to execute before or after an insert, update, or delete operation and can be used to enforce data validation rules.

Option B) Automatically generate values for newly inserted rows - This option is incorrect. Triggers can be used to automatically generate values for newly inserted rows. For example, a trigger can be set to insert a default value into a specific column when a new row is inserted.

Option C) Support alerts - This option is incorrect. Triggers can be used to support alerts. For example, a trigger can be set to send an alert or notification when a specific condition is met.

Option D) To implement Referential Integrity - This option is correct. Triggers cannot be used to implement referential integrity. Referential integrity is typically enforced through foreign key constraints and not through triggers.

The correct answer is D) To implement Referential Integrity. This option is correct because triggers are not used to implement referential integrity. Referential integrity is enforced through foreign key constraints.

Find more quizzes: