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: