What is a deterministic function? What are the advantages if we define a function as a determnisitic?
Thanks in advance Regards
BI DWH BALA
A deterministic function gives always the same result to given parameters. The result of a deterministic function depends only from the input. It can have more than one parameter.
Samples of deterministic functions: length, to_upper, trunc, substr
Oracle uses deterministic functions building function based indexes. Be deterministic is necessary because oracle stores the function result into a normal index. At query time the optimizer calls the function again for query parameters but not for all table values.
No one has followed this question yet.
Can 2 functions have the same name & input parameters but differ only by return datatype ?
What are the return values of functions SQLCODE and SQLERRM ?
Differences between DB_BUFFER_CACHE and LIBRARY_CACHE ?
Difference between a FUNCTION, PROCEDURE and PACKAGE in Oracle ?
Can we call a stored function in the constraint of a table ?