08/08/18 19:38:58 u8+oPdxp
質問です、お願いします。
select
a.name,
b.name1
from
table1 a,
(
select distinct
key1,
name1
from
table2
where
param_date between from_date and to_date and
param_flag = flag
order by
key1
) b
where
a.key1 = b.key1(+)
;
↑の様な場合に、サブクエリの結果との結合は必ず全検索(?)になってしまうんでしょうか?
Oracle10gです。
オラクルが上手い事最適化してくれないでしょうか…。2分探索とか…。