Question: Write 1 procedure or 1 function for each question and test them; please give the correct run screenshot,,,, DO NOT give useless SQL codes..... 5.

Write 1 procedure or 1 function for each question and test them; please give the correct run screenshot,,,, DO NOT give useless SQL codes.....

5. When client is returning the car (can pass reservation ID or client ID): The reservation ID is given. If a reservation is for more than 10 days, a 10% discount is offered If the reservation in having Christmas day in between, a 20% discount is offered. Now calculate the cost and ask for the payment. If client is not paying, or car is broken by the client, the client is moved to black list table with the reason

6. At the end of every year, the reservation table is emptied out (Leaving the records without end_date), The data is moved to the archieved_reservation

8. Stats are generated and copied to the stats table.

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!