Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR REPLACE FUNCTION SUM_SALARY
- (
- DEP_ID IN NUMBER
- ) RETURN NUMBER AS
- x number;
- BEGIN
- select sum(salary) into x from employees where department_id = DEP_ID;
- return x;
- END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement