Create a package which includes a function to return a square of a number if it is positive else return an error message to the user.
Create a package which includes a function to return a square of a number if it is positive else return an error message to the user.
Share
create or replace package Square as
function cal(n in number) return number;
. . . . . . .
FULL ANSWER IS IN THE ATTACHMENT: