0% found this document useful (0 votes)
61 views13 pages

18Cs570: Databases Lab Experiment 1 DATE: 04-AUGUST-2021: Airline Reservation Management System

The document describes an entity relationship diagram for an airline reservation management system. It lists 13 entities including aircrafts, routes, fares, flights, discounts, charges, passengers, and transactions. It defines the entities as strong or weak and describes the relationships between each entity in terms of cardinality. Tables are defined for each strong entity with field names and data types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views13 pages

18Cs570: Databases Lab Experiment 1 DATE: 04-AUGUST-2021: Airline Reservation Management System

The document describes an entity relationship diagram for an airline reservation management system. It lists 13 entities including aircrafts, routes, fares, flights, discounts, charges, passengers, and transactions. It defines the entities as strong or weak and describes the relationships between each entity in terms of cardinality. Tables are defined for each strong entity with field names and data types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

18CS570: DATABASES LAB

Experiment 1 DATE: 04-AUGUST-2021

AIRLINE RESERVATION
MANAGEMENT SYSTEM
19C032 – Harsha J S
19C049 – Linesh Raj T
19C101 – Srijith B

1
Entity list
1. AirCrafts
2. Route
3. AirFare
4. Flight_Schedule
5. Discounts
6. Charges
7. Countries
8. State
9. Contact_Details
10. Passengers
11. Branches
12. Employee
13. Transactions

2
ER MODEL:

3
STRONG ENTITY:
 AirCrafts
 AirFare
 Flight_Schedule
 Discounts
 Charges
 Countries
 State
 Passengers
 Branches
 Employee
 Transactions

WEAK ENTITY:
 Route
 Contact_Details

4
RELATIONAL MODEL:

Table with constraints:


AirCrafts

Field DataType Description Constraints


Field will store unique row
AcID INT Primary Key
number.
Aircraft number that identifies
AcNumber Varchar(32) NOT ULL
the plane.
Capacity INT No. of seats available. NOT NULL

Route
Field Data Type Description Constraints
RtID INT Stores unique row id. Primary Key
From where the flight will
Airport Varchar(32) NOT NULL
take off.
Destination Varchar (32) Flight destinations. NOT NULL

5
A unique Route code
NOT NULL
RouteCode Varchar(16) generated using Source &
UNIQUE
Destination of flight.

AirFare

Field Data Type Description Constraints


AfID INT Stores unique row id. Primary Key
Route INT Route id from Route table. Foreign Key
Fare Currency Stores service charge amount. NOT NULL

Flight_Schedule
Field Data Type Description Constraints
Unique number to identify the
FlID INT Primary Key
flight.
FlightDate DATETIME Date of flight. NOT NULL
Stores the departure time of
Departure DATETIME
flight.
Stores the arrival time of
Arrival DATETIME
flight on destination.
Aircraft number that will fly,
AirCraft INT Foreign Key
a number from Aircraft table.
To determine total fare of
NetFare INT flight, an ID from Air_Fare Foreign Key
table.

6
Discounts
Field Data Type Description Constraints
DiID INT Unique row id. Primary Key
Amount INT Discount amount in % NOT NULL
Description Varchar(255) Discount remarks & details.

Charges
Field Data Type Description Constraints
ChID INT Unique row id. Primary Key
Amount INT Amount of charge in %. NOT NULL
Description Varchar(255) Describe cause of charge.

Countries
Field Data Type Description Constraints
CtID INT Unique row id. Primary Key
CountryName Varchar(32) Room to store country name NOT NULL

6
State
Field Data Type Description Constraints
StID INT Unique row id. Primary Key
State name will take place
StateName Varchar(32)
here.
Country INT PK from Country table. Foreign Key

Contact_Details
Field Data Type Description Constraints
CnID INT Unique row id. Primary Key
Passenger’s contact email for
Email Varchar(16) NOT NULL
transaction about flights.
Passenger’s contact cell no
Cell Varchar(16) NOT NULL
for transaction about flights.
Street address of the
Street Varchar(64) NOT NULL
passengers.
State INT PK from State table. Foreign Key

Passengers
Field Data Type Description Constraints
PsID INT Unique row id. Primary Key
Name Varchar(32) Passenger’s name NOT NULL
Address Varchar (64) Passenger’s address NOT NULL
Age INT Passenger’s age NOT NULL
Nationalities Varchar (16) Nationality of the passenger. NOT NULL
ContactID from
Contacts INT Foreign Key
Contact_Details table.

Branches
Field Data Type Description Constraints
BrID INT Unique id for each branches Primary Key
Center Varchar(16) Branch Title NOT NULL
Address Varchar(32) Address of the branch NOT NULL
State INT State ID from state table Foreign Key
Employees

Field Data Type Description Constraints

Unique number to identity


EmpID INT employee, unique on entire Primary Key
system.
Name Varchar(32) Employee name NOT NULL
Address Varchar(32) Employee address NOT NULL
Associated branch id from
Branch INT Foreign Key
Branch Table
Designation Varchar(32) Working duty position. NOT NULL
Contact email of the
Email Varchar(32) NOT NULL
employee
Tel Varchar(16) Contact telephone number.

Transactions
Field Data Type Description Constraints
TsID INT Unique row id Primary Key
BookingDate Date/Time Keeps the booking date. NOT NULL
DepartureDate Date/Time Keeps the departure date. NOT NULL
Transaction creator passengers
row id to associate
Passenger INT Foreign Key
booking/cancellation,
payments etc.
Flight no, a PK of
Flight INT Flight_Schedule to determine Foreign Key
flying details & costs.
Type BIT Reservation/Cancellation NOT NULL
Reservation agent, a row id of
Employee INT employee who helps the Foreign Key
passenger to make transaction.
If transaction is cancellation,
Charges INT charges may apply as per Foreign Key
business rules.
Discount offers may apply
Discount INT Foreign Key
based on scheme criteria.
Calculated value of actual
Total INT payable cost by customer to NOT NULL
make a transaction.
9
Cardinality
Cardinality notations, using Chen style.
M = many, N = 0, 1, 2 …

SN Entities Cardinality
1. AirCrafts & Flight_Schedule 1:M
2. Route & AirFare 1:1
3. AirFare & Flight_Schedule 1;M
4. Discounts & Transactions N:1
5. Charges & Transactions N:1
6. Countries & State 1:M
7. State & Branches 1:M
8. Contact_Details & State M:1
9. Passengers & Contact_Details 1:1
10 Passengers & Transactions 1:1
11. Branches & Employee 1:M
12. Employees & Transactions 1:M
13. Transactions & Flight_Schedule M:1

16
18
19

You might also like