Question: PL/SQL code write a script to calculate and output the average time tools stay on hold and the average time tools stay on loan. The

PL/SQL code

write a script to calculate and output the average time tools stay on hold and the average time tools stay on loan. The time a tool stays on hold is the number of days between hold_status_change_date and hold_date for all holds with a hold_active status indicating the hold is not active. The time a tool stays on loan is the number of days between loan_status_change_date and tool_out_date. Also calculate and output the percent difference between the average loan time and the average hold time.*

please provide example syntax

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!