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.
As per the Insurance Act the Authority may prepare the scheme of Amalgamation of the insurer with any other insurer if it is satisfied that ____________...
DIN is allotted to a Director of a company by whom?
What is the composition of the Authority under the IRDA Act, 1999?
In which year European Union (EU) joined the Codex Alimentarius Commission (CAC)?
What type of contract is created when the performance of an existing contract depends on the occurrence or non-occurrence of a collateral and uncertain...
Match the correct option
A instigates B to murder C. B refuses to do so. In this case which of the following is true statement?
An application for setting aside an arbitral award can be made as per Section________ of the Arbitration and Conciliation Act, 1996.
Which section of the Information Technology Act, 2000 deals with punishment for sending offensive messages through communication service, etc.?
The legal guardian of a Muslim minor female is: