Porting Oracle Date Manipulation

Posted by Grasper on Stack Overflow See other posts from Stack Overflow or by Grasper
Published on 2010-04-26T17:17:50Z Indexed on 2010/04/26 17:23 UTC
Read the original article Hit count: 219

Filed under:
|
|
|

I need to port this following from Oracle syntax to Postgresql. Both FLO_END_DT and FLO_START_DATE are of type DATE in Oracle, and TIMESTAMP WITHOUT TIME ZONE in Postgresql:

SELECT

TRUNC( TO_CHAR(ROUND(( FL.FLO_END_DT- FL.FLO_START_DT)* 24), '9999D99'),2)

FROM 

FLOWS FL

I am not familiar enough with Oracle to know what it is trying to accomplish.

Any ideas?

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about Oracle