Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please check the code if you don't have oracle database don't do it and please answer the 3 questions right I need it asap in

please check the code if you don't have oracle database don't do it and please answer the 3 questions right I need it asap

in Oracle Database 10g Express Edition and hr schema

Q1. Write PL/SQL code to create a function called total_salaries that returns the total salaries of all employees who are working in X department or working as Y job title or working in Z country name . When you call the function, you have to pass your choice parameter and the department name or job title or the country name. The function will return the total salaries of employees who are working in that given department or job title or country name

Q2. Write PL/SQL code to create a procedure called Manager_info that returns the name of the manager, managed department name and how many employees under his management. When you call the procedure with a manager id, the procedure will returns the name of the manager, managed department name, total number of managed employees. Q3.Write PL/SQL code to create a package called CSC325_PACKAGE that use the function and procedure that you create them in q1 and q2 in addition to one more function and one more procedure of your choice. Show the usage of the package procedures and function. You need to use one exception( Oracle exception or user exception)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions