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.
Choose the correct option showing the meaning of the Idiom highlighted in the given sentence
The athlete decided to throw in the towel after i...
Which of the Phrases (a), (b), (c) and (d) should replace the highlighted phrase in the sentence to make it grammatically correct?
Though he ...
Add insult to injury
In the following questions, out of the 4 alternatives, choose the alternative which best expresses the meaning of the idiom/phrases.
Over egg ...
Put the cat among the pigeons
An idiom is used in three sentences. You need to choose the right option that covers the correct usage amongst these three sentences.
...
Select the idiom/phrase that most accurately and contextually replaces the bolded segment.
The journalist’s article made assumptions withou...
A bed of roses
- Choose the option which best expresses the meaning of the idiom/phrase in bold in the sentence.
The manager decided to take the bull by the horns a... - Which of the following idioms means ‘to initiate action, especially when others are reluctant or waiting’?