Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. CREATE OR REPLACE FUNCTION SUM_SALARY
  2. (
  3. DEP_ID IN NUMBER
  4. ) RETURN NUMBER AS
  5. x number;
  6. BEGIN
  7. select sum(salary) into x from employees where department_id = DEP_ID;
  8. return x;
  9. END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement