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.
In which session of Indian National Congress demanded complete Swaraj?
The Fifth and last Storey of Qutub Minar was built by?
The first human fossil was obtained from which river valley of India?
The founder of Sayyid Dynasty was
Which of the following is the first book of medieval India?
1) Kitab ul hind
2) Tehkik e hind
3) Shahnama
4) Tuzuk e Babr...
The capital of Vajji Mahajanapada was ____________.
Consider the following statements regarding the Neolithic period:
1. Neolithic people were not acquainted with agriculture.
2. Domesticati...
After King Ashoka's death, who ruled the eastern part of his empire?
Who got the throne after the death of Mughal emperor Aurangzeb?
Who was the founder of the Maurya Dynasty.