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

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

$
0
0

I would strongly recommend to change the join-condition to a less resource-consuming and easier-to-understand

INNER JOIN TABLE B ON A.ACCT_NB = TRIM(LEADIMNG '0' FROM B.ACCT_NUM)

In fact, both are bad and in best case you should try to clean up both your data model and data.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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