Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ITDMA 0 Project 3 Specification 2 0 2 1 | V 3 . 0 Page 2 of 6 Section A Question 1 1 2 0
ITDMA Project Specification V Page of
Section A
Question Marks
A South African Flight Booking Agency wants to develop its online booking system to afford its
clients a selfservice facility. The system will allow customers to check and reserve flights as and
when required. Customers will be able to view flights based on dates, times, prices, and
departure and arrival points. Any customer will be able to view flights on the system but only
registered customersmembers can make a reservation.
On registration, a customer is requested to provide a South African ID or passport number as a
login ID as well as their email address, telephone number, names, and an optional postal
address. Customers with an invalid email address, telephone number andor ID will be rejected.
The customer is also required to specify the class of flight when booking and ensure that
information such as dates and times, and places of departure and arrival are correct. The system
keeps track of flights by their names, dates and destinations. Flights are marked by flight
number, capacity, name, class and availability. There are three flight classes: st executive
classnd business class and rd economy class
A ticket can only be reserved for available flights. Each clientcustomer can only reserve one
ticket per journey and there can be more than one passenger per ticket. The system keeps track
of flights by flight numbers, customers names, dates and destinations. The system will allocate a
status of registered and not registered to a customer when an ID number is entered. A booking is
made using the customers name, flight number and date, while an optional discount is available
for seniors and minors. Based on their ID number, any customer over years is considered a
senior citizen and anyone under years of age is a minor. Minors may not have ID numbers,
which would make it impossible to secure a discount when booking online. Customers are also
given a choice of payment options.
Specifications
Create an ER Diagram for the scenario above.
Create a database.
Create the tables for the scenario above. Ensure to use constraints such as CHECK and other
validation constraints in your tables to avoid losing marks.
ITDMA Project Specification V Page of
Insert sample data into the tables you created above.
Create the following views:
vwFlight All flights appearing on the website, their availability and prices per
reservation.
vwAffordableFlight Select the top three flights with unchanged reservation and booking
price.
vwSeniorUsers Select all senior users who qualify for a discount based on their age.
vwOnboardCustomers Select all member names as well as the total number of classes
that each member will attend. HINT: Use the COUNT function.
Create the following stored procedures:
spAddNewFlights Insert new flights as they become available.
spUpdateFlyingTimes Update the flying times as requested by customers based on
demand.
spDeleteTicket Delete a ticket record. A ticket may only be deleted when it has been used
or its date has expired.
spReport Print the details of a specified flight class and each members name and contact
number assigned to the class. Your reports output should have exactly the same format as
shown below:
FLIGHT BOOKING REPORT:
Book ID:
customer name: Janne Date: Oct
flight number: Journey: One way
No Customer Name Flight Price
Jannie R
Calvin R
Siphiwo R
Use a counter to print the No column values, and ensure that the column values are properly
aligned.
ITDMA Project Specification V Page of
Create two after triggers on the tables you have created.
Create Indexes on the tables you created.
Create a zipped backup of your database and hand it in with your script files
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started