Hi,
I have worked on Procedures and Funtions and aware of their differences. Today I have got a interview question that - Suppose I have to return multiple values through a subprogram and I Neither want to execute any DML inside that subprogram Nor I want to use that subprogram in SQL query. Which subprogram should I prefer - "Procedure" or "Function" and why?
According to me, Both can be used in this case, but want to see your views/opinions.
regards,
Sachin Jaiswal