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

Query Tuning:PPI not being used in select - forum topic by teradatauser2

$
0
0

Hi,
I have a query :
sel colw,col2 .. from tab1 inner join tab2
on tab1.cola=tab2.colb
and tab1.date1 between tab2.date1 and tab2date2
Here tab1.date1 is a PPI column.
Question : Here although my date1 is a PPI column, partition elimination is not used. This is because my values are coming from join to another table Tab2. If i hard code the value or use current_date, it uses partition elimination.
But is practical scenarios we would get date from another table and not a hard coded value.
So, what is the reason for this and what is an alternate way to code so that PPI is used in these kind of scenarios ?

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>