Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Optimization: change in access path to one table changes join strategy to another table...
Hi John,
Looks like transitivity.
Cheers,
Tim
> Hi
>
> *** The query:
> SELECT
> itemtype.logo,
> tsm66.sm66_seat_num
> FROM tsm66_attrmultimedia tsm66,
> tsm30_format tsm30,
> (SELECT
> /*+ MERGE
> INDEX(tsm29 ism29_i02)
> INDEX(tsm17 ism17_p01)
> */
> tsm29.sm29_logo_seat_num,
> tsm29.sm29_page_numb_num,
> MAX(DECODE(tsm17.sm18_info_num, 78,0, 1)) logo
> FROM tsm29_multimedia tsm29,
> tsm17_item tsm17
> WHERE tsm17.sm17_item_num = tsm29.sm17_item_num
> GROUP BY tsm29.sm29_logo_seat_num,
> tsm29.sm29_page_numb_num
> ) itemtype
> WHERE tsm30.sm30_frmt_num = tsm66.sm30_frmt_num
> AND itemtype.sm29_logo_seat_num (+) = tsm66.sm66_seat_num
> AND itemtype.sm29_page_numb_num (+) = tsm66.sm66_page_numb_num
> -- and UPPER(sm66_multi_des) LIKE '1234'
> and sm66_seat_num = 1234
> ;
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Aug 24 2006 - 10:14:32 CDT
![]() |
![]() |