Hi,
I want to create a decode function that compare dates, NOTES.DATE_CHANGED and SYSDATE. I want it to look like this:
DECODE(TO_DATE(TO_CHAR(NOTES.DATE_CHANGED, 'MM-DD-YYYY'), 'MM-DD-YYYY') >= NEXT_DAY(TO_DATE(TO_CHAR(SYSDATE, 'MM-DD-YYYY'), 'MM-DD-YYYY'), 'MONDAY')-14, null, 'Yes', 'Non'). But I get the message "missing right parenthesis" before the sign ">". Can somebody give me a hand on this one???
Thank you,
Anne-Marie
I want to create a decode function that compare dates, NOTES.DATE_CHANGED and SYSDATE. I want it to look like this:
DECODE(TO_DATE(TO_CHAR(NOTES.DATE_CHANGED, 'MM-DD-YYYY'), 'MM-DD-YYYY') >= NEXT_DAY(TO_DATE(TO_CHAR(SYSDATE, 'MM-DD-YYYY'), 'MM-DD-YYYY'), 'MONDAY')-14, null, 'Yes', 'Non'). But I get the message "missing right parenthesis" before the sign ">". Can somebody give me a hand on this one???
Thank you,
Anne-Marie