Skip to content
Advertisement

condition that no of days between allotment_date-present date will be > 91 days in oracle sql

i have three tables in which one table have allotment_date.in this we have to make a condition that no of days between allotment_date-present date will be > 91 days.please help

Advertisement

Answer

If you want to ensure that allotment dates cannot be more than 91 days in the past (a bit of a guess – is that what you are asking?) then you would need a trigger:

This is allowed:

This will fail:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement