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

Join two tables using like statement - response (5) by VandeBergB

$
0
0

most of these solutions will "work", but they all have one fatal flaw, they force a full table scan of T1, the column that you are using a function to evaluate.  depending upon the size of the table, you would probably be better off if you created another column and updated it to "...position(trim(t1.ColA)", collected stats on it and used the new column in the join.
using any kind of function in the join clause will dramatically increase the spool used and performance will suffer as well.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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