Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Problems with the CASE structure - response (1) by ulrich

$
0
0

Hm, not 100% sure but
row one is stored as '         ' in the char field and '' in the varchar field to my understanding.
Given your code the case results in Str1 which is '         ' and char length is 10.
for varchar the case results in '' and has a length of 0.
check type(TRIM(T1) )   -> this returns varchar(10) and explains why you get 

CHARACTER_LENGTH(T1) = 0

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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