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.
Select the set in which the numbers are related in the same way as are the numbers of the given set. (NOTE: Operations should be performed on the whole ...
i) Who is sitting in the second place on the left side of the Dani, Chintu is sitting at the fourth place on the right side.
ii) There are three ...
In a row of students, the position of Vineeta from the left side of the row is 26th and the position of Vineeta from the right side of the row is 23rd. ...
Select the option that is related to the fifth term in the same way as the second term is related to the first term and the fourth term is related to th...
Which of the following numbers will replace the question mark (?) in the given series?
8, 18, 38, 78, 158, ?Â
Eight people M, N, P, S, T, V, X and Y are sitting in a straight row and all are facing north. M sits second from one of the extreme ends of the row. On...
Which figure should replace the question mark (?) if the following series were to be continued?
Two statements are given, followed by three conclusions. Assuming the statements to be true, even if they seem to be at variance with commonly known fac...
18 is related to 54 following a certain logic. Following the same logic, 21 is related to 63. To which of the following is 72 related to, following the ...
Find the odd one out :
Axe, Dagger, Arrow, Knife