PL/SQL Function returning age
CREATE OR REPLACE FUNCTION FINDAGE(
DT IN date)
RETURN NUMBER IS
AGE NUMBER;
BEGIN
AGE:= MONTHS_BETWEEN(SYSDATE,'DT');
RETURN AGE;
END;
What is really wrong with the above function?
MAXOOD!
Life is an endless journey towards perfection
__________________
MAXOOD!
Life is an endless journey towards perfection
|