Professional Documents
Culture Documents
Call procedure:-
Step : 1
step : 2
In that sql window write the sql query used for calling procedure or to execute the
procedure is "syntax : Call <schema name>.<procedure name> ( input
parameter );
Step : 1
For creating scalar functions right click functions which is in the left side of the
development window in that select open sql console.
Step : 2
In the sql console write coding for developing the scalar functions.
Step : 3
RETURNS result decimal(15,2)
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER AS
BEGIN
END;
CREATE FUNCTION apply_discount(im_var1 decimal(15,2), im_var2 decimal(15,2))
RETURNS result decimal(15,2)
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER AS
BEGIN
result := :im_var1 – ( :im_var1 * :im_var2 );
END;