Hi again, I am afraid I need your help again. This time the tings are get a lot more complicated(at least for me

) . The situation is as follows:
*From time to time, the organization decided to change the inspection frequency for a list
of component types on bridges of selected construction types. These inspection policy
changes are specified as in increase or decrease in the inspection interval (in months),
subject to an allowable minimum and maximum interval for each combination of
component type and construction type. For example, it might be decided to extend the
inspection interval for the cables on all cable-stayed bridges by adding 6 months to the
current interval per bridge, subject to a minimum of 12 months and a maximum of 36.
Develop and test an SQL procedure to apply an inspection policy update to all
affected bridge components. This should apply all updates for a particular review
date to all affected bridge components in a single run of the procedure. If the
minimum or maximum limits for a particular component would be breached by
an update, the update should not be rejected, but the inspection interval for the
component should be set equal to the minimum or maximum, as appropriate.
You should include some simple mechanism to prevent the possibility of
accidentally applying a change twice in succession. How can I do that in an update query? What the sentence should look like? Please help me, any comments will be appreciated! Thank you.