In my database I have a table called loans, within that I have the following attributes;
create table loan
(LoanID varchar2(6) PRIMARY KEY,
Issue_Date date not null,
Due_Date date not null,
Return_Date date not null,
Fine_Total number(3,2
.....));
I want the ability to run a view (called member_fines) to find out how many days an item is late and for the number of days to be placed in a field. Is it possible to do that?
Can i do that within a view? or should that information already be placed in another table? Is it possible to increases the number of days automatically, according to the sysdate?
create table loan
(LoanID varchar2(6) PRIMARY KEY,
Issue_Date date not null,
Due_Date date not null,
Return_Date date not null,
Fine_Total number(3,2
.....));
I want the ability to run a view (called member_fines) to find out how many days an item is late and for the number of days to be placed in a field. Is it possible to do that?
Can i do that within a view? or should that information already be placed in another table? Is it possible to increases the number of days automatically, according to the sysdate?