📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • âś–

      Question

       What is the primary purpose of a "Trigger" in a

      database?
      A To define a virtual table based on a query. Correct Answer Incorrect Answer
      B To enforce referential integrity constraints automatically. Correct Answer Incorrect Answer
      C To execute a stored procedure manually. Correct Answer Incorrect Answer
      D To automatically execute a specified SQL code in response to certain events (INSERT, UPDATE, DELETE) on a table. Correct Answer Incorrect Answer
      E To create a temporary table for complex calculations. Correct Answer Incorrect Answer

      Solution

      Answer: D) To automatically execute a specified SQL code in response to certain events (INSERT, UPDATE, DELETE) on a table.

      Practice Next
      ask-question