Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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. Create a stored procedure that takes a desired flight ID, luggage limit, class (economy 'E',
business 'B' or first class 'F') and desired number of seats as input, and outputs whether the
flight is available for booking or not. The procedure should make sure there are enough seats
available in the desired class; there is enough luggage room (after subtracting mail cargo
capacity from the total cargo capacity); and that the flight is estimated to depart at least 3 hours
from the time that the stored procedure is executed.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

See Exercise 2.3.3.

Answered: 1 week ago

Question

Describe employee assistance programs.

Answered: 1 week ago

Question

Describe the importance of physical fitness programs.

Answered: 1 week ago

Question

Discuss the factors that set the stage for global HR practice.

Answered: 1 week ago