Question: Question 3. The attached text file XYX_LTD is an executable SQL script containing workers informations at XYZ company ltd. Execute the script on my SQL

Question 3. The attached text file XYX_LTD is an executable SQL script containing workers informations at XYZ company ltd. Execute the script on my SQL workbench and use it to answer the following questions: (20 Marks)
d) Create an SQL stored procedure to obtain a list of departments and total amount each department
spends on salary payments. (4 Marks)
e) Write an SQL query to fetch the last five records from a table. (2 Marks)
f) Create an SQL stored procedure that prints a list of all departments indicating the number of people in
each department. (3 Marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!