Sei sulla pagina 1di 12

Project Name Flight Reservation Database

Examination HSSC II

Organization Fazaia Inter College Peshawar

Presented by

Supervised by Sir Junaid Ahmed Inam


The Flight Reservation Database Tables
The five tables for our Flight reservation database are now available in the table
menu

Features within a single application.

Tables:

Tables have fields (columns) for each property of a record.


Each row of a table contains an individual record for that table.

Each table in the database is related to the other tables in a meaningful way.

The Flight Reservation database consist of 5 tables:

o Aircraft table for aircraft information

o Aircraft seats table for seat reservation information

o Flight table contain all information regarding flights

o Passenger table for passengers information details

o Reservation table contain all information about flight reservation

2
Why more than one table?

Every reservation has a passenger and a flight.


Passengers and flights have an ID number.

Split the details off into separate tables.

This is good because Information is entered and stored once and minimizes redundancy.

The Aircraft Table

The Aircraft table holds the information to identify and describe each aircraft. The
following table contain three fields including aircraft, Type and aircraft capacity.

3
The Aircraft Seat Table

The Aircraft seat table holds the information to identify and describe each aircraft seat.
The following table contain five fields including aircraft seat ID, Row number, seat
number and aircraft class.

The Flight Table

The Flight table holds the information to identify and describe each aircraft flight. The
following table contains seven fields including flight ID, Aircraft ID, flight number,
departure city, arrival city, departure time and arrival time.

4
The Passenger Table

The Passenger table holds the information to identify and describe each passenger. The
following table contains four fields including passenger ID, name, address and contact.

The Reservation Table

The Reservation table holds the information to identify and describe each passenger
reservation. The following table contains six fields including reservation ID, flight ID,
Passenger ID, seat ID, Date purchase and Ticket price.

5
Queries
Queries allow data to be extracted from a single table or across multiple tables.

Queries allow information to be correlated and extracted from the database across
multiple tables according to some specific selection criteria.

As an example we will build the query which will require that record information be
linked across all five tables

Aircraft Query

6
Aircraft Seat Query

Flight Query

Passenger Query

7
Reservation Query

Forms
On screen forms provides a simple graphical method of inserting and updating
database information without the need to access tables directly.

Aircraft Form

Aircraft seat Form

8
Flight Form

Passenger Form

Reservation Form

9
Reports
Reports extract specific information from the database which is presented in
document form for printing or migration to Word as a document.

Aircraft Report

Aircraft Seat Report

10
Flight Report

11
Relationships: Linking the Tables
Foreign Keys

Fields that reference a primary key in another table are termed a Foreign Key. The
foreign key - primary key link allows associated records from different tables to be joined
into a single record.

To enable these join operations the relevant links must be defined. This is done in the
Relationships window.

Table Relationships

The relationships window below illustrates the relationships that need to be defined to
allow the relevant fields in the database to be linked.

12

Potrebbero piacerti anche