its likely to be -
check Dieters reply on http://forums.teradata.com/forum/database/implicit-data-type-conversion-to-char-ends-up-in-unicode
you can validate by
create volatile table sql_test as (
SELECT CAST(COALESCE(A,"") AS VARCHAR(11)) || '|' || TRIM(B) as test FROM <DB>.<TB>
) with no data
no primary index
on commit preserve rows;
show table sql_test;
I guess test will be unicode
I think
SELECT COALESCE(cast(A as varchar(11)),"" ) || '|' || TRIM(B) as test FROM <DB>.<TB>
should work
↧