I have a select statement calling same function two times for returning two different columns, Since the same function is called twice, it's creating a performance issue.
I want to call function only once and copy its value to another column. Is it possible in oracle ?
SELECT ID
,PKGRESTFUNCTION.getBlock(table.ID, table.TYPE) "BLOCK"
,PKGRESTFUNCTION.getBlock(table.ID, table.TYPE) "MASK"
from table
where ID=condition;
RESULT_CACHEto the function.