2009年3月17日星期二

please note the hash unique step, which is anti-union all

select email from employees where department_id in (select 90 from dual union all select 90 from dual)

Id_Operation Name Rows Cost (%CPU)
0_SELECT STATEMENT
196 (0)
1__TABLE ACCESS BY INDEX ROWID EMPLOYEES 101 (0)
2___NESTED LOOPS
196 (0)
3____VIEW VW_NSO_1 24 (0)
4_____HASH UNIQUE
24 (50)
5______UNION-ALL


6_______FAST DUAL
12 (0)
7_______FAST DUAL
12 (0)
8____INDEX RANGE SCAN EMP_DEPARTMENT_IX 100 (0)



没有评论: