Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2800

how to convert microseconds to date in HANA

$
0
0

Hello experts,

 

I have postgresql query which is shownbelow, i need to convert this into hana equivalent sql query

 

select a.userid, u.firstname, u.lastname, count(*)

from jiveuser u

inner join jivemessage m on u.userid = m.userid

inner join jiveanswer a on m.messageid = a.messageid

where to_timestamp(m.creationdate / 1000) >= to_timestamp('01/09/2015', 'DD/MM/YYYY')

and to_timestamp(m.creationdate / 1000) < to_timestamp('01/10/2015', 'DD/MM/YYYY')

group by a.userid, u.firstname, u.lastname

order by count desc

 

but in the where clause i have below statement

where to_timestamp(m.creationdate / 1000) >= to_timestamp('01/09/2015', 'DD/MM/YYYY')

 

where creation date data in underlying table looks like 1445,485,323,751 which means its micro second

 

now i need to convert microsecond to date function , can anyone please guide me on this

 

Regards

Naresh P


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>