Question: Write the SQL function with the question and test the function; please provide the correct run screenshot! write this function in SQL !!!!! 5. When

Write the SQL function with the question and test the function; please provide the correct run screenshot!

write this function in SQL !!!!!

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.

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!