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.
They filed case against the criminal but no one was ready to show up as a ___________.
Choose the correct answer to fill the given blank
The boys _____ basketball in the park every day.
 These days, home décor is exposed to the _______ of trend and fashion.
There were spelling and grammar ……………, a pitiful ………….. of her ………….. schooling.
...Adopting green technologies in power generation, which has a lock-in effect lasting decades, and other areas like transport with immediate impacts such...
Directions: Below given sentences contain two blanks. Fill in the blanks with appropriate words.Â
The musician's mesmerizing performance _____...
- In the following question, an incomplete statement followed by fillers is given. Pick out the best filler to complete the incomplete statement, correctly a...
The …………. on culture and civilisation in the party’s foreign policy articulation is rather evident over the years, …………..when it was i...
Awash in green with wisps of clouds drifting through, this tranquil village up in the mountains of Uttarakhand is truly magical. With panoramic views o...
The black feathers of the male bird of paradise eat light. That’s because unlike a typical bird feather, which is more or less neatly structured with...