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

Big table - very big table join - forum topic by debu_ju

$
0
0

Hi All,
I have a performance issue with a query. Below is the sample query where sales table does not have any index on cust_ky, but rep has cust_ky as a NUPI. Volume of rep is about 13 million and sales is 100 million.
 
select r.rep_nm, s.qty
from sales s join rep r on s.cust_ky = r.cust_ky
 
1. What should be the ideal join strategy for this case? 
2. Is a NUSI on sales.cust_ky going to help? 
 
Thanks
Debu

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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