on 08-06-2013 4:14 AM
Is there any DATADiff fuction in HANA?
SQL: DATEDIFF("ORDR"."DocDate", "ODLN"."DocDate") AS "Days"
HANA:???????
Thanks
Ashish,
You could do it the following way.
SELECT DAYS_BETWEEN (TO_DATE ('2009-12-05', 'YYYY-MM-DD'), TO_DATE('2010-01-05', 'YYYY-MM-DD')) "days between" FROM DUMMY;
days between
31
Reference information on SAP HANA is available at SAP HANA Platform – SAP Help Portal Page
Then use the links for SAP HANA SQL Reference to either download the pdf or view online.
There you will find different functions available.
Pawan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.