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

Joining tables on fields with varying lengths - response (2) by dnoeth

$
0
0

You don't have to care about CHARs or VARCHARs, because trailing spaces simply don't matter, e.g. '0123' and '0123        ' compare equal.
But the leading zeroes (or leading blanks) cause trouble and you need to get rid of them. You should use Raja's approach, just change BOTH to LEADING.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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