on 08-20-2013 9:32 AM
Hi,
Is there instruments in SAP HANA SQL dialect for working with dates and time intervals?
How could I add/subtract interval to date? Something like that:
select (TO_DATE('2040-Jan-10', 'YYYY-MON-DD') - 11::days);
Thanks in advance,
Dmitry.
Hi Dmitry,
You maybe can use add_days function, for example ADD_DAYS (TO_DATE ('2040-Jan-10', 'YYYY-MON-DD'), -11).
Regards,
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.