Want to get first day of last month [message #609501] |
Fri, 07 March 2014 14:05 |
|
cplusplus1
Messages: 58 Registered: October 2012 Location: usa
|
Member |
|
|
I am using the following condition it is working fine on toad sql dev, but the trunc is not recongnized in the etl tool, is there another way getting 1st day of last month without using trunc.
I pass the date as this: '01-Jan-2014'
where calendar_day = TRUNC(TRUNC(TO_DATE('01-Jan-2014', 'DD-MON-YYYY') , 'Month')-1 , 'Month');
Thank you very much for the helpful info.
|
|
|
|
|
|