Question
Which of the following is true about triggers in a
relational database?Solution
Triggers are database objects that automatically execute predefined actions in response to specific events, such as INSERT, UPDATE, or DELETE operations. They are used to enforce complex business rules, maintain audit trails, or synchronize tables. For instance, a trigger can automatically log changes to a table in an audit table whenever a record is updated. Triggers are associated with a table or a view and fire without manual intervention, making them ideal for automation. While powerful, they should be used judiciously to avoid performance bottlenecks in high-transaction environments. Why Other Options Are Incorrect :
- Triggers can be manually executed by database administrators : Triggers are event-driven and cannot be executed manually.
- Triggers replace indexes for optimizing queries : Indexes are designed to optimize query performance, while triggers are for automating responses to events.
- Triggers are only used for logging data changes : While logging is a common use case, triggers have broader applications like enforcing business rules.
- Triggers can only be defined for INSERT operations : Triggers can be defined for INSERT, UPDATE, DELETE, or even complex conditions.
Which data structure is used in BFS traversal of graphs?
In the dynamic programming approach for LCS, the base cases are crucial for correctly initializing the dp table.
Consider the following Python co...
Which of the following is NOT a valid feature of IPv6 compared to IPv4?
What is a key advantage of containerization over traditional virtual machines?
Which of the following types of testing is typically conducted by end-users to verify that the developed software meets their requirements?
A stack follows which principle for data access?
A queue follows which principle for data access?
Deletion in Red-Black Trees maintains balance using:
Which of the following is NOT among the OWASP Top 10 Web Security Risks?
In the context of system analysis, which of the following best defines the "use case" diagram?