Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Casting timestamp to date and to char - response (3) by CarlosAL

$
0
0
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.

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>