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.
_____ lives on _____ floor.
Who among the following is younger than Rakesh only?
Four of the following five are alike in a certain way and hence form a group. Find the one that doesn’t belong to that group.
Which of the following live just below C?
Which of the following can be coded as ‘sip zdp’?
Who among the following has lower price bike than U?
In which of the following banks does Z’s mother work and lives on which of the following floor?
Four of the following five are a like in a certain way based on the given arrangement and thus form a group. Which is the one that does not belong to ...
Select the combination of numbers that when placed sequentially in the blanks of the given series will complete the series.
j k _ m _ o p _ r _ k...
Read the directions below and answer the following questions.
Six persons B, D, E, A, F, and C live in a six-floored building. The bottommost f...