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

Casting in case statement - response (1) by dnoeth

$
0
0

You need to cast only the date not the case:
CASE WHEN OFR_STRT_DT='1900-01-01' THEN ‘NA’ ELSE CAST (OFR_STRT_DT as varchar (10) ) END as OFR_STRT_DT
 
Dieter
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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