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

What are the different types of dbms?

721


Why do we use subquery?

703


What is before trigger?

735


what is offset-fetch filter in tsql? : Transact sql

715


Cite the differences between execution of triggers and stored procedures?

824






What is the command used to fetch first 5 characters of the string?

1094


Does pl sql work in mysql?

687


Where the sql database files are stored?

692


What are the dml statements?

854


How many types of sql are there?

719


Is it mandatory for the primary key to be given a value when a new record is inserted?

931


What is sql scripting?

753


What is sql exception?

705


How do you use collections in procedure to return the resultset?

2000


How to process query result in pl/sql?

773