I have a table with dates and I want to make a before insert and update trigger that check the dates for a condition and then stop the update and the insertion if the condition is true.
How can I do that?