Is it possible to create a trigger that will not allow for an Insert or Update if the due date is greater then 2 weeks from the current date?
I have a loans table;
create table loan
(LoanID varchar2(6) PRIMARY KEY,
Issue_Date date not null,
Due_Date date not null,
......
The issue_date will use the sysdate, and the due date should not be greater then 2 weeks.
Is it also possible to extend that trigger to when loan_id is like "VID%" the the return date should not be over one week?
Any help would be great
Thank you
Asad
I have a loans table;
create table loan
(LoanID varchar2(6) PRIMARY KEY,
Issue_Date date not null,
Due_Date date not null,
......
The issue_date will use the sysdate, and the due date should not be greater then 2 weeks.
Is it also possible to extend that trigger to when loan_id is like "VID%" the the return date should not be over one week?
Any help would be great
Thank you
Asad