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..



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

Answer / 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

More SQL PLSQL Interview Questions

Explain lock escalation? : Transact sql

0 Answers  


How do you create a unique index?

0 Answers  


how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

0 Answers  


Is sqlite good enough for production?

0 Answers  


What is the difference between python and sql?

0 Answers  






What are the parts of a sql statement?

0 Answers  


What is the purpose of cursors in pl/sql?

0 Answers  


What is the difference between nvl function, ifnull function, and isnull function?

0 Answers  


How can a pl sql block be executed?

0 Answers  


who introduced sql?

0 Answers  


Can there be 2 primary keys in a table?

0 Answers  


How do I make my sql query run faster?

0 Answers  


Categories