I'm trying to convert a date key and a time key (both numeric) to a timestamp in yyyy-mm-dd hh:mm:ss format in Netezza.
e.g. date_key=20120711 time_key=61946 should be converted to '2012-07-11 06:19:46'
I tried to_date function
to_date(date_key||to_char(time_key,'099999'),'yyyymmdd hh24miss').
The function works in Oracle but fails in Netezza only producing a date result: '2012-07-11 00:00:00' for the above example. What would work in Netezza? Thanks.