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.
From when will RBI’s bar on prepayment penalties for floating rate loans to MSEs be effective?
Bhadra Tiger Reserve, recently seen in news, is located in which state?
What is the primary focus of AgriHub, the AI-driven Center of Excellence launched by MeitY and IIT Indore?
What is the main purpose of the AgriSURE Fund launched by the Union Agriculture Minister?
What is the renewable energy capacity target that India aims to achieve by 2030?
What is India’s projected GDP growth for FY26 according to ICRA?
NITI Aayog’s report “Pathways to Progress” focuses on which area?
The government of India slashed the windfall tax on domestically produced petroleum crude to what value effective from September 18, 2024?
What unique feature does the HSBC Taj Credit Card emphasize?
What is the primary aim of APEDA’s ‘Indian Mango Mania 2025’ campaign held in Abu Dhabi?