Sofia:
It's TIMESTAMP(3) then...
SELECT CAST(CAST(DATE_DT AS FORMAT 'YYYYMMDD') AS CHAR(8)) AS TXN_DTE,
USER_ID,
CAST(USER_ID AS VARCHAR(9)) || ' ' ||
CAST(STORE_NBR AS VARCHAR(5)) || ' ' ||
CAST(CAST(DATE_DT AS FORMAT 'YYYYMMDDHHMISS') AS CHAR(14))
FROM TABLE
;
HTH.
Cheers.
Carlos.
↧