You are on page 1of 8

CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 1 of 8

Module Learning Outcome

CLO Explain advanced database concepts related to database design and


Final Exam
1 administration (C2, PLO1)
Apply the concepts and techniques related to database such as Transaction
CLO
management, optimization strategies, and database Security for a given Final Exam
2
scenarios (C3, PLO2)

CLO Demonstrate the ability to create a database system using advanced Group
3 database concepts for a given case study. (A3, PLO6) Assignment

Assignment Hand-out Date:


Assignment Hand-in Date:

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 2 of 8

In this assignment you are required to:

 Form yourselves into a group of 2-3 students.

 Design, develop and implement a solution to a business problem.

 Implement the solution in either MS SQL Server or Oracle.

 Document the solution as set out in the assignment requirements.

 Include a workload matrix (will be provided by lecturer), providing details on


the distribution of work amongst group members. The workload matrix has to
be agreed and signed off by ALL group members.

 Present your application in week 13/14. All group members must attend the
presentation. Presentation schedules will be published later.

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 3 of 8

Case Study
TRAVEL SAFE INTERNATIONAL (TSI) is one of the leading companies in the
business of providing global distribution systems on selling tickets for multiple
airlines. Its head office is located at Singapore. Tickets can be booked in one of three
classes – First, Business, and Economy. One-way, Round-trip and Multi-city options
are available for flight booking. Multiple types of meal options are available for
different flights. Duration of the flight decides about serving refreshment, single meal
or multi meal. Special services, such as child-care are provided for children aged
between 2 to 11 years by offering special meal. Fare would be based on different age
categories for passengers as mentioned below.
 Infant (Ages: under 2)
 Child (Ages: 2-11)
 Youth (Ages: 12-17)
 Adult (Ages: 18-64)
 Senior (Ages: 65 or over)

Fare for an infant depends on whether the infant is “in lap” or “in seat”. In case of
travelling with an infant in lap, the airlines will charge between 10-15% of the adult
fare whereas travelling with an infant in seat, the airlines will charge the child fare.
Some airlines have a maximum of 10 passengers per booking.

Most of the airlines restrict that a child aged less than 17 cannot travel alone but some
of the airlines offer unaccompanied minor service for children from 5 to 17 years of
age to ensure that child is boarded onto the aircraft. The service is mandatory for all
unaccompanied children and subject to extra cost. Unaccompanied minor service is
not required for children ages 17 and younger when they are travelling with a parent
or with an adult 18 years of age or older. Every two children who are travelling
together will be assessed a single fee in each direction.

Wheelchair service is also provided by some airlines. General constraints and rules
applicable for flight reservation are being followed including but not limited to
baggage limit. Passenger could purchase additional baggage during ticket reservation.

Ticket cancellation can be done, however re-fund is not permitted. Upon cancellation,
the amount paid will be transferred to credit account where it can be used for future
booking. The amount in credit account is only valid for one year from the date of
cancellation. For ticket changes, such as changing travel date/time without changing
original/destination place, may be done with some additional charges subject to
availability. The new travel date/time must be within one year from the original date.
If a traveler cancels or change its itinerary less than 24 hours before its scheduled
flight, it will lose the entire ticket value.

You are required to design a database covering following areas.

 Flight Reservations
 Flight Cancellations & Rescheduling

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 4 of 8

Requirements:

1. DESIGN
(a) Develop an ERD to support TSI’s activities. The ERD must shows entities,
relationships and should be followed by logical design. Identify primary and
foreign keys, and show cardinality and optionality. Data must be in 3NF or
higher unless it has been denormalized for performance reasons in which case
an explanation must be given.

Your model should support the business requirements.

(b) Design suitable constraints, stored procedure, trigger, and optimization


strategy that would support the business rules. Each member is required to
design one constraint, one stored procedure, one trigger and one optimization
strategy. Document and provide a written description and justification of your
constraints, stored procedure, trigger and optimization strategy.

2. IMPLEMENTATION
(a) Implement your design. You will be expected to demonstrate the database,
tables, referential integrity, appropriate test data and constraints.

(b) Implement the stored procedure, triggers and optimization strategy. You must
be able to explain and justify your work during the presentation. Work which
function but which the group cannot explain will receive zero marks. Some
marks may be awarded for non-functioning store procedure, triggers or
optimization strategy if the group can identify the issues.

(c) Each member is required to create one constraint, one stored procedure, one
trigger and one optimization strategy to support a business requirement or
enhance usability. One good quality example is sufficient, but you must be
able to explain why and how you would use this feature and what benefits it
offers compared to other possible implementation approaches. Features which
function but which the group cannot explain will receive zero marks. Some
marks may be awarded for features which do not function fully but where the
group can explain the issues.

(d) Create the following queries – this section is worth 10 marks in total. Student
must be able to explain the queries and justify the approach taken. Marks will
be reduced if student cannot explain the solutions.

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 5 of 8

Student 1

i. Create a query which shows direct flights only for given dates, origin &
destination.

ii. Create a query which shows aircraft code, class code, and expected revenue
for each class code, along with the total revenue of each aircraft for a given
airline in a single journey.

iii. Create a query which shows all passenger numbers with their corresponding
descriptions of reservation status for a specific airline.

iv. Create a query which shows the name of airline that has been most frequently
travelled through by the passengers for specified source and destination in
given range of dates.

v. Create a query which provides, for each age category of passengers, the
following information:

The total number of infants, children, youths, adults & seniors travelling
through specified flight in a single journey operated by a specified airline in
given date. Result should contain both detailed breakup & summary for above
mentioned categories along with overall summary.

Hint: you may wish to use rollup or cube statements with a query. Some
marks will be awarded for the query structure, even if you cannot generate the
totals.

vi. Develop one additional query of your own which provides information that
would be useful for the business. Marks will be awarded depending on the
technical skills shown and the relevance of the query.

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 6 of 8

Student 2

i. Create a query which displays flight details, such as, the aircraft code, regular
fare, and discounted fare for the first class. A 25% discount is being offered.
Label the columns as Aircraft, Regular First-Class fare, and Discounted First
Class fare.

ii. Create a query which displays the sorted details of flights to given city code
with the least duration flight displayed first.

iii. Create a query which displays the types of non-vegetarian meals offered on
flights.

iv. Create a query which shows the names of countries to which TSI provides
flight reservations. Ensure that duplicate country names are eliminated from
the list.

v. Create a query which provides, for each airline, the following information:

The total number of flights scheduled in a given date. Result should contain
both detailed breakup & summary for flights for each airline along with
overall summary.

Hint: you may wish to use rollup or cube statements with a query. Some
marks will be awarded for the query structure, even if you cannot generate the
totals.

vi. Develop one additional query of your own which provides information that
would be useful for the business. Marks will be awarded depending on the
technical skills shown and the relevance of the query.

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 7 of 8

Student 3

i. Create a query which shows the minimum, maximum, and average journey
hours for flights to given city code. Display column headings as, Minimum
duration, Maximum duration, and Average duration respectively.

ii. Create a query which shows the journey date, number of booked seats, and
class name for given passenger.

iii. Create a query which shows the names of meals not requested by any
passenger.

iv. Create a query which shows the details of passengers booked through a
specified airline in a given date for multi-city flights.

v. Create a query which provides, for each airline, the following information:

The total number of unaccompanied children travelling in a given date. Result


should contain both detailed breakup & summary for unaccompanied children
for each airline along with overall summary.

Hint: you may wish to use rollup or cube statements with a query. Some
marks will be awarded for the query structure, even if you cannot generate the
totals.

vi. Develop one additional query of your own which provides information that
would be useful for the business. Marks will be awarded depending on the
technical skills shown and the relevance of the query.

Assessment Criteria

No Component Marks Allocated


1 Design - Group Component
a) ER Model
b) Constraints, stored procedure 30%
c) Triggers, optimisation Strategy

2 Implementation - Group Component


a) Table design and constraints
b) Triggers 40%
c) Stored procedure
d) Optimisation strategy

Implementation - Individual Component

Level 3 Asia Pacific University of Technology and Innovation 2024


CT004-3-3-ADVBS Advance Database Systems Group Assignment Page 8 of 8

e) SQL Queries 10%

3 Project Presentation 20%

Level 3 Asia Pacific University of Technology and Innovation 2024

You might also like