|
Thanks a lot Naveen,
Even after executing the following the execution
plan shows full table scan :-
+ alter session set
QUERY_REWRITE_ENABLED=TRUE;
+ alter session set QUERY_REWRITE_INTEGRITY=TRUSTED; + alter session set optimizer_mode=FIRST_ROWS; + Insert into employees values('A');
+ Insert into employees values('B');
+ analyze table employees compute statistics;
+
select last_name
FROM employees WHERE UPPER(last_name) IS NOT NULL ORDER BY UPPER(last_name); 2 3 Elapsed: 00:00:00.00 Execution
Plan
---------------------------------------------------------- 0 SELECT STATEMENT Optimizer=FIRST_ROWS (Cost=3 Card=2 Bytes=2 ) 1 0 SORT (ORDER BY) (Cost=3
Card=2 Bytes=2)
2 1 TABLE ACCESS (FULL) OF 'EMPLOYEES' (Cost=1 Card=2 Bytes= 2) Even after using the hint no change in the plan :-
+ select /* INDEX employees(upper_ix) */ last_name FROM employees
WHERE UPPER(last_name) IS NOT NULL;
Please tell me what else should I do to make this query use the index which
is created.
TIA,
Marul.
|
- Function-Based Index not working Marul Mehta
- RE: Function-Based Index not working Naveen Nahata
- RE: Function-Based Index not working Sandeep Kurliye
- RE: Function-Based Index not working Marul Mehta
- RE: Function-Based Index not working Naveen Nahata
- Re: Function-Based Index not working Marul Mehta
- RE: Function-Based Index not working Seefelt, Beth
- RE: Function-Based Index not working Naveen Nahata
- Re: Function-Based Index not working Marul Mehta
- Re: Function-Based Index not working Marul Mehta
- Re: Function-Based Index not working Steve Perry
- Re: Function-Based Index not working Steve Perry
- RE: Function-Based Index not working Andrey Bronfin
- Re: Function-Based Index not working Jared Still
