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

TUNING THE join - response (4) by dnoeth

$
0
0
Hi Harshitha, this was just a quick'n'dirty try to show you how to do it, you'll have to find out the exact query matching your requirements.   Hi Mahesh, sorry, but this is way to much, i'm not willing to read all that stuff. But a short glance showed: - if "cr" means indian crore and every table has 50.000.000 rows, how can the optimizer estimate billions of rows? - lots of "no confidence" indicating wrong/no stats, did you run DIAGNOSTIC HELPSTATS? - lots of COUNT DITSINCT and a ROLLUP, hard to calculate - change the COALESCE to an ORed condition - NUSI are not used, not selective enough - UPIs will not allow AMP-local joins, NUPIs might   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>