Try like below (assuming the DATE format is MM/DD/YYYY. If not then, you can change it accordingly)
SELECT
(CAST( (CAST(TRIM(Stg.Fecha_Ejecucion_OOSS) AS CHAR(10)) || ' ' || CAST(TRIM(Stg.Hora_Ejecucion_OOSS) AS CHAR(8)))
AS TIMESTAMP(0) FORMAT 'MM/DD/YYYYBHH:MI:SS')) POSTSALES_TRANSACTION_Err
FROM DWH_VIEW_STAGE.VS2701 Stg
↧