Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Examination HSSC II
Presented by
Tables:
Each table in the database is related to the other tables in a meaningful way.
2
Why more than one table?
This is good because Information is entered and stored once and minimizes redundancy.
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 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 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
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
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