Ensure two dates fields in an oracle record are within certain range, so it will not insert records beyond these two dates. A safe guard.
I have table BatchRun. that has two date fields lastrun_date and newrun_date.
Is there a way so I can set up this table so that it will not allow any inserts where the difference between the two dates is greater than 5 days?