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

UNION ALL results - response (1) by dnoeth

$
0
0

Could you shou the query or at least the basic syntax?
A common problem when using set operators:
The data type of a column is determined by the first select.
When the column is a VARCHAR(20) in the 1st select and a VARCHAR(30) in the 2nd, the data from the 2nd will be silently truncated to 20 chars.
To avoid that you have to cast the column in the 1st select to a VARCHAR(30).
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>