What is Function based Index and which type of function we can use in Function base index.
can we use aggregate,NVL function in Function based Index..

Answer Posted / dinesh

Its not batter to modify where clause column with function(Performance issue). So we need to create function based index. Eg.
Create Index Fun_indx on EMP (UPPER(FIRST_NAME).
we can't create function based index on aggregate function.
but we can create NVL function as function.
also we can create function based index on user define function but function should be"DETERMINISTIC".
eg
create or replace function fun_index(a in number) Return
Number DETERMINISTIC IS
BEGIN
'''
,,,
END;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many joins in sql?

546


What is a variable in sql?

511


How are sql commands classified?

588


What is a record in pl/sql?

546


what is the difference between primary key and unique key? : Sql dba

521






Can I call a procedure inside a function?

546


How can you fetch first 5 characters of the string?

546


How to rename a table?

554


What are pl/sql packages?

567


How do I truncate a sql log file?

528


What is cursor explain with example?

550


How can I speed up sql query?

521


how to enter characters as hex numbers? : Sql dba

565


How can I change database name in sql?

524


How do I install sql?

517