on 05-19-2015 9:48 PM
I have 2 seperate columns in hana graphical calculation view that I want to concatenate together into a time stamp there is no concat function in the calculation library. Has anyone been able to do this in HANA? I have the fields in DT & TM data types as well as string types.
Hi Alex,
You can use + sign to concatenate and longdate function to convert it to timestamp data type.
use the below one as example.
longdate(string('2014-01-21') +string(' ')+ string('10:20:15')+string('.123456'))
if you have columns already in string data type then no need to use string() function.
if you have just secondate which means no m.seconds, then use the below syntax.
seconddate(string('2014-01-21') +string(' ')+ string('10:20:15'))
Regards,
Venkat N.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.