Mike Hughes
06-27-2007, 09:30 AM
I'm looking to pickup the cases where the date last paid is greater than 60 days. Can someone help me
select id_case,
dt_last_pay
from noldba.case_rollup;
select id_case,
dt_last_pay
from noldba.case_rollup;
|
View Full Version : Number of days between last pay and today Mike Hughes 06-27-2007, 09:30 AM I'm looking to pickup the cases where the date last paid is greater than 60 days. Can someone help me select id_case, dt_last_pay from noldba.case_rollup; pdx_man 06-27-2007, 09:38 AM select id_case, dt_last_pay from noldba.case_rollup; where datediff("d",DT_last_pay, Date()) > 60 Mike Hughes 06-27-2007, 09:43 AM I get an error ORA-00936 Missing Expression pdx_man 07-05-2007, 11:24 AM Does the SQL you posted work? boblarson 07-05-2007, 11:37 AM select id_case, dt_last_pay from noldba.case_rollup; where datediff("d",DT_last_pay, Date()) > 60 get rid of the semi colon after the word rollup and move it to the end of everything (after 60) |