Dear Experts,
I want to set the condition where dte_received is between today date and the date 12 months ago.So far I tried the following statement:
WHERE dte_received between (sysdate,-12) and sysdate; (at which System generated an error message)
I run the following:
SELECT SYSDATE FROM dual (which looks like 5/7/2018 10:49:07 AM)
&
SELECT dte_received FROM MYTABLE (looks like 20171213)
How can I change dte_received format in order my statement above would work?
Thank you in advance!
Estersita
I want to set the condition where dte_received is between today date and the date 12 months ago.So far I tried the following statement:
WHERE dte_received between (sysdate,-12) and sysdate; (at which System generated an error message)
I run the following:
SELECT SYSDATE FROM dual (which looks like 5/7/2018 10:49:07 AM)
&
SELECT dte_received FROM MYTABLE (looks like 20171213)
How can I change dte_received format in order my statement above would work?
Thank you in advance!
Estersita