All,
Am trying to read data from BC_MSG table using an abap program. The query am trying to excecute is
Select MSG_ID from BC_MSG WHERE SYSTIMESTAMP - TRAN_DELV_TIME > interval '3600' second
Now this SQL statement works fine and returns me the Message ID. However the issue is SYSTIMESTAMP is returned in EST which is fine, but TRAN_DELV_TIME (field in bc_msg) is returned in UTC time which is 5 hours ahead of EST. And hence the subtraction gives negative interval and hence the wrong list of msg_id.
Is there a way I can convert the TRAN_DELV_TIME in EST in the above select statement itself?
Thanks