SQL Statements - Advanced Knowledge of Stored Procedures and Functions - IT Computer Science Assignment Help

Download Solution Order New Solution
Assignment Task :

AIMS AND OBJECTIVES: 

to demonstrate an advanced knowledge of stored procedures, stored functions and triggers. 

 

Task 1 

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 by client(s) having last name “Perez”. 

d. Display the Name of the equipment and the name of their suppliers (if any) for the outdoor activities with high risk level. You need to display all the equipment including equipment which is not supplied by any supplier. 

e. Display the name of the outdoor instructor who has the most duties as an activity supervisor. 

f. Display the reservations (reservation number and duration) whose duration is greater than the average duration of reservations. 

g. For each reservation, display the total income coming from activities & total income coming from accommodations along with the reservation number. (Do not consider the discount schemes but consider every reservation even if it does not have any of the costs associated with it). 

 

Task 2 

Provide the implementation of the following stored procedures and function. For submission, please include both the PL/SQL code and an execute procedure/SQL statement to demonstrate the functionality. 

a. Write a stored procedure that displays the contact details of clients who does not have any heart conditions or Acrophobia. The resort wants to promote a new outdoor activity to them. 

b. Write a stored function that uses the reservation number, activity ID, and date as input and returns the Name of the supervisor assigned for that specific activity. 

 

Task 3  

Provide the implementation of the following trigger. For submission, please include both the PL/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 selects Rafting as a preferred outdoor activity.

 

This  IT Computer Science Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.