I have a view which utilized 2 inline views as part of the FROM clause.
A simplified example:
Select
<fields>
FROM
table1
,(select <fields> from table2) t2
,(select <fields> from table3) t3
WHERE
t1.account_number = t2.account_number
and t2.account_number = t3.account_number (+)
and t2.record_date = t3.record_date (+)
t2 and t3 are partitioned on Record_date.
When I select from the view including a record_date criteria of a single day, the explain plan is showing a single partition used from t2, but is performing a full scan on t3.
How do I write the view, or other mods (indexes, hints, etc) to get the partition pruning to work in this case?
Thanks
A simplified example:
Select
<fields>
FROM
table1
,(select <fields> from table2) t2
,(select <fields> from table3) t3
WHERE
t1.account_number = t2.account_number
and t2.account_number = t3.account_number (+)
and t2.record_date = t3.record_date (+)
t2 and t3 are partitioned on Record_date.
When I select from the view including a record_date criteria of a single day, the explain plan is showing a single partition used from t2, but is performing a full scan on t3.
How do I write the view, or other mods (indexes, hints, etc) to get the partition pruning to work in this case?
Thanks