Link to home
Start Free TrialLog in
Avatar of Dovberman
DovbermanFlag for United States of America

asked on

Oracle - Calling a parameterized function in a SQL Statement

I have a function named MyFunction

MyFunction has two input parameters.

A working SQL call to a function named Function2 with one parameter exists.

MyFunction has 2 parameters instead of 1.
a.Col1, b.Col1

nvl(Function2(a.Col1),' ') AS myComments,

What is the syntax for 2 parameters?

nvl(MyFunction(a.Col1),' ',???) AS myComments,

??? MyFunction(b.Col1)

Thanks
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Parameters are comma separated:
MyFunction (param1, param2)

If one of the parameters is the result of function2, so be it:
myfunction(nvl(Function2(a.Col1),' '),'someotherparam')

From the description I do not understand what you are asking.
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dovberman

ASKER

Thanks. Very complete.