Assignment title: Information
Using the tables provided above, provide SQL statements for the following queries.a. Display the name of the client who has made the most reservations with Getaway Holidays.b. Display the name of the client who has booked the reservation for the longest period.c. Display the Room no, Room type, Room rate and No of guests for the reservation made byclient(s) having last name "Perez".d. Display the Name of the equipment and the name of their suppliers (if any) for the outdooractivities with high risk level.e. Display the details of those reservation that contains a minimum of one set of connected rooms.f. Display the name of the outdoor instructor who has the most duties as an activity supervisor.g. Display the name, address and phone number for the clients who has not made any reservationsfor the past two months. (Name should be displayed in alphabetical order).h. For each reservation, display the total income coming from activities & total income comingfrom accommodations along with the reservation number. (Do not consider the discountschemes but consider every reservation even if it does not have any of the costs associated withit).i. Display the reservations (Reservation number and duration) whose duration is greater than theaverage duration of reservations.j. Display the top two most popular activities across all reservations.[5 marks each – 50%]Task 2 [30 marks]Provide the implementation of the following stored procedures and function. For submission, pleaseinclude both the PL/SQL code and an execute procedure/SQL statement to demonstrate thefunctionality.a. Write a stored procedure that displays the contact details of clients who does not have anyheart conditions or Acrophobia. The resort wants to promote a new outdoor activity to them.b. Write a stored function that uses the activity ID and date as input and returns the Name ofthe supervisor assigned for that day.c. Write a stored procedure that accepts a particular reservation number as input, and as outputdisplays the total layout of the trip in terms of outdoor and indoor activities along with thename of the client and the name of the activity supervisor assigned for each of the activity.(NOTE: this stored procedure should use the function created in Task 2b)[10 marks each – 30%]Task 3 [20 marks]Provide the implementation of the following triggers. For submission, please include both thePL/SQL code and an insert statement to demonstrate the trigger functionality.a. A trigger which automatically raises an error whenever a client with Aqua phobia selectsRafting as a preferred outdoor activity.b. A trigger that automatically calculates and stores in a separate table called"Reservation_room_expense" the reservation number and the due amount foraccommodations for each record number. (Consider the 5% discount on room prices if thetrip consists of more than 5 days).[10 marks each – 20%]