pl/sql
Suppose you have created tables as follows
Tables:
Company(cid, cname, city, state) /* city is the company’s location, cname is company name */
Employee(eid, ename, street, city, state, salary, cid) /* city is where the employee lives*/
Manages(eid, mid) /* mid is manager’s ID*
Please write PL/SQL program for the following program
Problem 1: Please create a PL/SQL procedure that given a company name, print out names of employees working at that company. Test your procedure with a company name you have in your company table.
Problem 2: Please create a PL/SQL function get_manager that returns the manager’s id given the name of an employee. If an employee does not have a manger, return a null value. Please write an anonymous PL/SQL program to call this function with some employee name as input, and print out the results. You can assume that each employee has at most one manager.
11 years ago 15
Purchase the answer to view it
- solution.zip
- ECE 214 Week 5 DQ 1 ( Challenging Classroom Behaviors ) ~ 2 Different Answers ~ A + Work With References
- Week Five - ECO 561 - Discussion Questions
- science question
- i wnat it done after 5 hours from now
- Calculate the electric fields
- COM 200 Week 5 Final Paper Letter of Advice Paper
- ENG 122 English Composition II week 4 final exam (100% score)
- John Canthar
- sapling chem Quizz & homework s
- Biology Help