CREATE OR REPLACE FUNCTION fun2(e IN NUMBER, dodac IN NUMBER DEFAULT 2, odjac IN NUMBER DEFAULT 0)
RETURN INTEGER IS
  s INTEGER;
BEGIN
  SELECT sal INTO s
  FROM emp
  WHERE empno = e;
  RETURN s + dodac - odjac;
END;
/
