I think the one above is adaptable if you remove the parameter and change the WHERE to be the different day thresholds for each, eg.
WHERE days_as_mod > 365
(The trigger would be update daily)
I think the one above is adaptable if you remove the parameter and change the WHERE to be the different day thresholds for each, eg.
WHERE days_as_mod > 365
(The trigger would be update daily)