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

Do Casting is required for precision mismatch - response (1) by dnoeth

$
0
0

The first select determines the datatype of the result, when you SELECT EMP.Designation UNION SELECT EMPLOYEE.Designation the result will be CHAR(20) and data in EMPLOYEE.Designation will be silently truncated to 20 chars.
When you do the union vice versa, it will be ok.
But i would recommend a CAST instead of relying on a specific order :-)
 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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