Netezza - How to convert timestamp/datetime to 13-digit UNIX time millis?
I have read some reference about Netezza, but I cannot figure out how to convert timestamp/datetime value to 13-digit UNIX time millis.
Any suggestion or ideas?
Postgres offers the extract(epoch from . . .) function that does exactly what you want:
select extract(epoch from <datetimecol>) * 1000
This has been in Postgres for a long time, so I would guess that Netezza also supports it.