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.
The first-ever cannabis medicine project in India will be set up in ______.
Which of the following vegetation type is found on eastern slopes of Western Ghats?
Who oversees the Ministry of Labour and Employment?
When and how long is the 'Har Ghar Tiranga' campaign being organized?
Which virus serves as the carrier of iNCOVACC?
Consider the following statements with respect to ‘Local self-government’:
1.   In 1687, Bombay achieved the distinction of being the fir...
Which districts of Uttarakhand has been selected as the aspirational district under Swajal 2.0?
In January 2023, The venue of Bio Energy Summit-2023 was :
Which prominent IT company-led consortium has been awarded an advance purchase order worth more than ₹15,000 crore by the government-owned BSNL?
Among the following G20 countries, which is the highest performer in Climate Change Performance Index (CCPI) 2023?