SlideShare a Scribd company logo
1 of 19
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 1
INTRODUCTION
Airlines will provide you with an overall understanding of the airline industry and a
wealth of Information you will need to apply your new skills and knowledge. You will learn
about the scope and structure of the aviation industry including the impact of deregulation. We
will take you on a tour of Airports and their services, and learn how airplanes fly. You will
discover how airlines adapt to the ever-changing socio-economic, Environmental, industrial and
technical changes that impact the Airline industry as a whole. Being a highly competitive
business, Airlines must priorities the importance of providing employees with the best training
programmers to ensure they acquire the proper Skills and knowledge of the business.
An airline is a company that provides air transport services for travelling passengers and
freight. Airlines lease or own their aircraft with which to supply these services and may form
partnerships or alliances with other airlines for mutual benefit.
TWA Douglas DC-3 in 1940. The DC-3, often regarded as one of the most influential
aircraft in the history of commercial aviation, revolutionized the aviation industry. Tony Jannus
conducted the United States' first scheduled commercial airline flight on 1 January 1914 for the
St. Petersburg-Tampa Airboat Line.
Why Space Flight Can't Become Popular the Way Airplanes Did. March 12, 2013 By.
The Wright Brothers first flew in 1903. By 1914, people were experimenting with commercial
airlines, and by the 1930s, there were many regularly-scheduled airline services in the US and
around the world.
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 2
ADVANTAGES
 The biggest advantage of flying is that it is often the fastest way to get from one place
to another, especially when long distances are involved. It helps us save a lot of time, so
we can do more things. Secondly, I think the comfort of air travel makes people satisfy.
When we travelling by air, can sit comfortably in an on chair, Reading magazines, listen
to music, Read books, and play games or watching a free film on television
 The process of making arrangements to fly can be quite convenient. A plane ticket can be
purchased by telephone or on the internet. We don’t have to cope with crowed at airport
as other stations for buying tickets
 The flight attendants are always friendly, we can “Call” them when we need. Moreover,
some meals have test well on the plane.
DISADVANTAGES
 Apart from these advantages, however, travelling by air has its disadvantages, too. First
of all, flying is often the most expensive from of transportation, especially if reservations
are not made well in advance, if amounts to hundreds of dollars or even millions.
 Some people might not be able to afford to fly on the budget airline. Then air travels have
the reputation of being dangerous and even hardened travelers are intimidated by them.
There are plane crashes in which the crew and passengers have died.
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 3
REQUIREMENTS
 Each aircrafts is identified by a unique number of its ID, Aircraft number that identify the
plane and this includes the information about the number of seats available in it’s and
manufacturing and manufactured date of aircrafts.
 Each Route is identified by its own unique ID, and a unique route code. Route must have
airport from where the flight will be take off, and the flight destination.
 They have airfare for individual’s route. Each airfare is identified by Airfare ID and the
airfare for different route is identified by route id with flight date, departure date, arrival
date and net fare.
 Airline provides discounts for many special persons and so many.....
 Each countries is identify through its unique country ID and name.
 States of in the country are also identifying with the help of state name.
 Airline must have maintained the contact details of each passenger’s. Identifying the
individual passengers contact details through unique contact details id.
 Identifying the individual passengers through passengers ID. And they must have every
passengers Name, Address, Age, Nationality, Contacts.
 Airline Company has several branches in many different states of the country. Each
branch has been identified through branch ID.
 Airlines have many employees to provide well services to his customers. Each employee
has a unique employee id with name, address, associated branch, designation, etc...
 Each transactions of the passenger are finding through its unique transaction ID. Along
with booking date, departure date, relevant information.
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 4
ENTITY STRUCTURES WITH RELEVANT ATTRIBUTES
Aircrafts
Field Data Type Description Constraints
AcID INT
Field will store unique row
number.
Primary Key
AcNumber Varchar(32)
Aircraft number that identifies
the plane.
NOT ULL
Capacity INT No. of seats available. NOT NULL
MfdBy Varchar(128) Manufacturing company. NOT NULL
MfdOn DATETIME Manufactured date of aircraft. NOT NULL
Route
Field Data Type Description Constraints
RtID INT Stores unique row id. Primary Key
Airport Varchar(32)
From where the flight will
take off.
NOT NULL
Destination Varchar (32) Flight destinations. NOT NULL
RouteCode Varchar(16)
A unique Route code
generated using Source &
Destination of flight.
NOT NULL
UNIQUE
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
FSC Currency Stores fuel surcharge amount. NOT NULL
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 5
Flight_Schedule
Field Data Type Description Constraints
FlID INT
Unique number to identify the
flight.
Primary Key
FlightDate DATETIME Date of flight. NOT NULL
Departure DATETIME
Stores the departure time of
flight.
Arrival DATETIME
Stores the arrival time of
flight on destination.
AirCraft INT
Aircraft number that will fly,
a number from Aircraft table.
Foreign Key
NetFare INT
To determine total fare of
flight, an ID from Air_Fare
table.
Foreign Key
Discounts
Field Data Type Description Constraints
DiID INT Unique row id. Primary Key
Title Varchar(32) Label to know discount. NOT NULL
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
Title Varchar(32) Label for charge. NOT NULL
Amount INT Amount of charge in %. NOT NULL
Description Varchar(255) Describe cause of charge.
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 6
Countries
Field Data Type Description Constraints
CtID INT Unique row id. Primary Key
Country Nam Varchar(32) Room to store country name NOT NULL
State
Field Data Type Description Constraints
StID INT Unique row id. Primary Key
StateName Varchar(32)
State name will take place
here.
Country INT PK from Country table. Foreign Key
Contact_Details
Field Data Type Description Constraints
CnID INT Unique row id. Primary Key
Email Varchar(16)
Passenger’s contact email for
transaction about flights.
NOT NULL
Cell Varchar(16)
Passenger’s contact cell no
for transaction about flights.
NOT NULL
Tel Varchar(16)
Passenger’s contact telephone
no. for transaction about
flights.
Street Varchar(64)
Street address of the
passengers.
NOT NULL
State INT PK from State table. Foreign Key
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 7
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
Contacts INT
ContactID from
Contact_Details table.
Foreign Key
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
EmpID INT
Unique number to identity
employee, unique on entire
system.
Primary Key
Name Varchar(32) Employee name NOT NULL
Address Varchar(32) Employee address NOT NULL
Branch INT
Associated branch id from
Branch Table
Foreign Key
Designation Varchar(32) Working duty position. NOT NULL
Email Varchar(32)
Contact email of the
employee
NOT NULL
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 8
Tel Varchar(16) Contact telephone number.
Ext INT
Ext number of employee
cabinet, if applicable.
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
Passenger INT
Transaction creator passengers
row id to associate
booking/cancellation,
payments etc.
Foreign Key
Flight INT
Flight no, a PK of
Flight_Schedule to determine
flying details & costs.
Foreign Key
Type BIT Reservation/Cancellation NOT NULL
Employee INT
Reservation agent, a row id of
employee who helps the
passenger to make transaction.
Foreign Key
Charges INT
If transaction is cancellation,
charges may apply as per
business rules.
Foreign Key
Discount INT
Discount offers may apply
based on scheme criteria.
Foreign Key
Total INT
Calculated value of actual
payable cost by customer to
make a transaction.
NOT NULL
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 9
ER DIAGRAM
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 10
CREATING THE TABLES
1. Create table AIRCRAFTS_7
(
AcId int not null,
AcNumber varchar(32) not null,
Capacity int not null,
MfdBy varchar(128) not null,
MfdOn date not null,
primary key(AcId)
);
2. Create table ROUTE_7
(
RtID int not null,
Airport varchar(32) not null,
Destination varchar(32) not null,
RouteCode varchar(16) not null,
primary key(RtID),
UNIQUE(RouteCode)
);
3. Create table AIRFARE_7
(
AfID CHAR(6),
Route int,
Fare int not null,
FSC int not null,
primary key(AfID),
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 11
foreign key(Route) references ROUTE_7(RtID)
);
4. Create table FLIGHT_SHEDULE_7
(
FlId int,
FlightDate date not null,
Departure CHAR(9),
Arrival CHAR(9),
AirCraft int,
NetFare char(6),
primary key(FlId),
foreign key(AirCraft) references AIRCRAFTS_7(AcId),
foreign key(NetFare) references AIRFARE_7(AfID)
);
5. Create table DISCOUNTS_7
(
DiID int,
Title varchar(32) not null,
Amount int not null,
Description varchar(255),
primary key(DiID)
);
6. Create table CHARGES_7
(
ChId int,
Title varchar(32) not null,
Amount int not null,
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 12
Description varchar(255),
primary key(ChId)
);
7. Create table COUNTRIES_7
(
CtID int,
CountryName varchar(32) not null,
primary key(CtID)
);
8. Create table STATE_7
(
STID INT,
StateName varchar(32),
Country int,
primary key(STID),
foreign key(Country)references COUNTRIES_7(CtID)
);
9. Create table Contact_Details_7
(
CnID int,
Email varchar(16) not null,
Cell varchar(16) not null,
Tel varchar(16),
Street varchar(64) not null,
State int not null,
primary key(CnID),
FOREIGN KEY(STATE)REFERENCES STATE_7(STID)
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 13
);
10. Create table PASSENGERS_7
(
PsID int,
Name varchar(32) not null,
Address varchar(32) not null,
Age int not null,
Nationalities varchar(16) not null,
Contacts int,
primary key(PsID),
foreign key(Contacts)references Contact_Details_7(CnID)
);
11. Create table BRANCHES_7
(
BrID int not null,
Center varchar(16) not null,
Address varchar(32) not null,
State int not null,
primary key(BrID)
);
12. Create table EMPLOYEES_7
(
EmpID int,
Name varchar(32) not null,
Address varchar(32) not null,
Branch int,
Destintion varchar(32) not null,
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 14
Email varchar(32),
Tel varchar(16),
Ext int,
primary key(EmpID),
foreign key(Branch)references BRANCHES_7(BrID)
);
13. Create table TRANSACTIONS_7(
TsID int not null,
BookingDate date not null,
DepartureDate date not null,
Passenger int,
Flight int,
Type int,
Employee int,
Charges int,
Discount int,
primary key(TsID),
foreign key(Passenger)references PASSENGERS_7(PsID),
foreign key(Flight)references FLIGHT_SHEDULE_7(FlID),
foreign key(Employee)references EMPLOYEES_7(EmpID),
foreign key(Charges)references CHARGES_7(ChID),
foreign key(Discount)references DISCOUNTS_7(DiID)
);
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 15
DESCRIBING THE TABLES
DESCRIBE AIRCRAFTS_7;
DESCRIBE ROUTE_7;
DESCRIBE AIRFARE_7;
DESCRIBE FLIGHT_SHEDULE_7;
DESCRIBE DISCOUNTS_7;
DESCRIBE CHARGES_7;
DESCRIBE COUNTRIES_7;
DESCRIBE STATE_7;
DESCRIBE CONTACT_DETAILS_7;
DESCRIBE PASSENGERS_7;
DESCRIBE BRANCHES_7;
DESCRIBE EMPLOYEES_7;
DESCRIBE TRANSACTIONS_7;
INSERTING VALUES INTO TABLES
Aircrafts_7
INSERT INTO AIRCRAFTS_7 VALUES(1,'ATR 72-500',75,'KINGFISHER AIRLINES','23-
apr-1998');
INSERT INTO AIRCRAFTS_7 VALUES(2,'ATS 90-200', 175,'BUTTERFLY AIRLINES','10-
jan-1990');
INSERT INTO AIRCRAFTS_7 VALUES(3,'MNR097',200,'SEPER_FAST AIRLINES','08-
may-2000');
INSERT INTO AIRCRAFTS_7 VALUES(4,'ATR 72-500',50,'DUBAI EMIRATES','06-jun-
2004');
INSERT INTO AIRCRAFTS_7 VALUES(5,'ATR 72-500',80,'Deccan AIRLINES','03-dec-
1980');
select * from AIRCRAFTS_7;
Route_7
insert into ROUTE_7 values(110,'KARNATAKA','Pokhara','KTM-PKR');
insert into ROUTE_7 values(119,'USA','CHENNI','TN-CHN');
insert into ROUTE_7 values(114,'UAE','BANGLORE','KA-BAN');
insert into ROUTE_7 values(134,'ENGLAND','CALICUT','KL-CALK');
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 16
insert into ROUTE_7 values(165,'NEPAL','BURJKHALEEFA','DUB-BKH');
Airfare_7
insert into AIRFARE_7 values('111',110,8600,12);
insert into AIRFARE_7 values('222',119,10000,10);
insert into AIRFARE_7 values('333',114,6000,12);
insert into AIRFARE_7 values('444',134,25000,12);
insert into AIRFARE_7 values('555',165,3000,12);
select * from AIRFARE_7;
Flight_shedule_7
INSERT INTO FLIGHT_SHEDULE_7 VALUES(6,'23-JAN-2016','23:20','1:20',1,111);
INSERT INTO FLIGHT_SHEDULE_7 VALUES(7,'26-FEB-2016','20:10','1:40',2,222);
INSERT INTO FLIGHT_SHEDULE_7 VALUES(8,'08-MAY-2016','09:20','11:00',3,333);
INSERT INTO FLIGHT_SHEDULE_7 VALUES(9,'16-MAR-2016','04:00','06:15',4,444);
INSERT INTO FLIGHT_SHEDULE_7 VALUES(10,'10-SEP-2016','03:20','08:05',5,555);
SELECT * FROM FLIGHT_SHEDULE_7;
Discount_7
INSERT INTO DISCOUNTS_7 VALUES(1,'Childrens',10,'Discount is provoided to all
childrens under age of 10 years');
INSERT INTO DISCOUNTS_7 VALUES(2,'Freedom fighters',15,'Discount is provoided to
indian freedom fighters');
INSERT INTO DISCOUNTS_7 VALUES(3,'Senior citizens',05,'Discount is provoided to all
Senior citizens above the age of 60');
INSERT INTO DISCOUNTS_7 VALUES(4,'Handicafts',15,'Discount is provoided to all
Handicafts');
INSERT INTO DISCOUNTS_7 VALUES(5,'Govt employees',20,'Discount is provoided to all
Indian Govt. Employees');
select * from DISCOUNTS_7;
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 17
Charges_7
INSERT INTO CHARGES_7 VALUES(10,'Urgent cancellation',550,'33% will be charged for
cancellation for booking within 11 hrs from flight time');
INSERT INTO CHARGES_7 VALUES(20,'Route change',300,'10% will be charged for Route
change within 4 hrs from flight time');
INSERT INTO CHARGES_7 VALUES(30,'Class change',600,'15% will be charged for Class
change within 6 hrs from flight time');
INSERT INTO CHARGES_7 VALUES(40,'Extra booking',2000,'05% will be charged for Extra
booking within 11 hrs from flight time');
INSERT INTO CHARGES_7 VALUES(50,'Breaking rules',550,'20% will be charged for
Breaking rules in flight');
select * from CHARGES_7;
Countries_7
insert into COUNTRIES_7 values(91,'INDIA');
insert into COUNTRIES_7 values(01,'USA');
insert into COUNTRIES_7 values(62,'AUSTRALIA');
insert into COUNTRIES_7 values(977,'NEPAL');
insert into COUNTRIES_7 values(971,'UAE');
select * from COUNTRIES_7;
State_7
insert into STATE_7 values('29','KARNATAKA',91);
insert into STATE_7 values('213','CALIFORNIA',01);
insert into STATE_7 values('121','TASMENIA',62);
insert into STATE_7 values('545','KATHMANDU',977);
insert into STATE_7 values('766','ABU-DHABI',971);
Contact_details_7
insert into CONTACT_DETAILS_7 values(1,'hello@gmail.com','9845098450',NULL,'xyz
street',29);
insert into CONTACT_DETAILS_7 values(2,'hai@gmail.com','9845098450',NULL,'ABC
street',213);
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 18
insert into CONTACT_DETAILS_7 values(3,'supper@gmail.com','9845098450',NULL,'xyz
street',121);
insert into CONTACT_DETAILS_7 values(4,'comput@gmail.com','9845098450',NULL,'xyz
street',545);
insert into CONTACT_DETAILS_7 values(5,'soft@gmail.com','9845098450',NULL,'xyz
street',766);
select* from CONTACT_DETAILS_7;
Passengers_7
insert into PASSENGERS_7 values(147,'Shankar_kumar','Sinamanaga,#31',25,'Nepalese',1);
insert into PASSENGERS_7 values(258,'KISHORE P','41,KOLLEGALA',35,'Indian',2);
insert into PASSENGERS_7 values(369,'JOHN','998,CALIFORNIA',45,'American',3);
insert into PASSENGERS_7 values(456,'FRANKLIN','675,TASMENIA',55,'AUSTRALIAN',4);
insert into PASSENGERS_7 values(582,'ABDULLA','987,ABU-DHABI',23,'Khaleefas',5);
select* from PASSENGERS_7;
Branches_7
insert into BRANCHES_7 values(01,'KARNATAKA','New road,BANGLORE',29);
insert into BRANCHES_7 values(02,'CALIFORNIA','ARCH ROAD,CALIFORNIA',213);
insert into BRANCHES_7 values(03,'TASMENIA','MAINROAD,TANGENIA',545);
insert into BRANCHES_7 values(04,'KATHMANDU','New road,BARKONDA',26);
insert into BRANCHES_7 values(05,'ABU-DHABI','NEAR BURJ,KHALEEFA',766);
select* from BRANCHES_7;
Employees_7
INSERT INTO EMPLOYEES_7 VALUES(120,'Kishore','#32,Kollegal',01,'Sales Execu-
tive','kishorep@gmail.com','9900236598',null);
INSERT INTO EMPLOYEES_7 VALUES(121,'JAFAR','#32,YAANDUR',02,'Sales Execu-
tive','JAFAR@gmail.com','9900236599',null);
INSERT INTO EMPLOYEES_7
VALUES(122,'SANJAY','#32,Kollegal',03,'SECURITY','SANJAY@gmail.com','9740236598',n
ull);
AIRLINE DATABASE MANAGEMENT SYSTEM
GPT. CHN DEPT. CS&E Page 19
INSERT INTO EMPLOYEES_7
VALUES(123,'MAHESH','#32,T.NARSIPURA',01,'SUPERVISOR','MAHESH@gmail.com','99
86236598',null);
select* from EMPLOYEES_7;
Transactions_7
insert into TRANSACTIONS_7 values(1,'23-oct-2016','28-oct-2016',147,6,null,120,10,1);
insert into TRANSACTIONS_7 values(2,'24-NOV-2016','29-oct-2016',258,7,null,121,20,2);
insert into TRANSACTIONS_7 values(3,'25-oct-2016','28-oct-2016',369,8,null,122,30,3);
insert into TRANSACTIONS_7 values(4,'23-oct-2016','28-oct-2016',456,9,null,123,40,4);
OUTPUT
Fig: - Output of Airline database management system

More Related Content

What's hot

Airline reservation system 1
Airline reservation system 1Airline reservation system 1
Airline reservation system 1_faisalkhan
 
18542444 ticketing-manual-2
18542444 ticketing-manual-218542444 ticketing-manual-2
18542444 ticketing-manual-2Dinesh Ghodke
 
Airline reservation system
Airline reservation systemAirline reservation system
Airline reservation systemUnsa Jawaid
 
Assignment 1 of Database (MySQL & Sqlite3)
Assignment 1 of Database (MySQL & Sqlite3) Assignment 1 of Database (MySQL & Sqlite3)
Assignment 1 of Database (MySQL & Sqlite3) Aey Unthika
 
Aircraft ground handling
Aircraft ground handlingAircraft ground handling
Aircraft ground handlingkrackerbrandon
 
overview on airport operation
overview on airport operationoverview on airport operation
overview on airport operationAiDY
 
Amadeus Quick Reference Training
Amadeus Quick Reference Training Amadeus Quick Reference Training
Amadeus Quick Reference Training A. S. M. Raiahan
 
General Aviation Security
General Aviation SecurityGeneral Aviation Security
General Aviation SecurityERAUWebinars
 
Airline Reservation System
Airline Reservation SystemAirline Reservation System
Airline Reservation SystemSahil Talwar
 
Introduction to Airline Information System
Introduction to Airline Information SystemIntroduction to Airline Information System
Introduction to Airline Information SystemSiddhartha Tripathi
 
history of airport security
history of airport security               history of airport security
history of airport security Hasin Raheel
 
Flight reservation and ticketing system Final PPT
Flight reservation and ticketing system Final PPTFlight reservation and ticketing system Final PPT
Flight reservation and ticketing system Final PPTmarcorelano
 
Basic Passenger Tariff Training
Basic Passenger Tariff TrainingBasic Passenger Tariff Training
Basic Passenger Tariff Trainingjamesjamesiata
 
APPLY ADVANCED AIRFARE RULES AND PROCEDURES
APPLY ADVANCED AIRFARE RULES AND PROCEDURESAPPLY ADVANCED AIRFARE RULES AND PROCEDURES
APPLY ADVANCED AIRFARE RULES AND PROCEDURESKORNKAWIN JIRACHAIYAKAN
 
Airline business- Airline Industry III
Airline business- Airline Industry IIIAirline business- Airline Industry III
Airline business- Airline Industry IIIToy Ang
 
Flight departure delay prediction
Flight departure delay predictionFlight departure delay prediction
Flight departure delay predictionVivek Maskara
 
Online Airline Ticket reservation System
Online Airline Ticket reservation SystemOnline Airline Ticket reservation System
Online Airline Ticket reservation Systemsathyakawthar
 

What's hot (20)

Airline reservation system 1
Airline reservation system 1Airline reservation system 1
Airline reservation system 1
 
Overview of airline booking process
Overview of airline booking processOverview of airline booking process
Overview of airline booking process
 
18542444 ticketing-manual-2
18542444 ticketing-manual-218542444 ticketing-manual-2
18542444 ticketing-manual-2
 
Airline reservation system
Airline reservation systemAirline reservation system
Airline reservation system
 
Assignment 1 of Database (MySQL & Sqlite3)
Assignment 1 of Database (MySQL & Sqlite3) Assignment 1 of Database (MySQL & Sqlite3)
Assignment 1 of Database (MySQL & Sqlite3)
 
Profit maximization
Profit maximizationProfit maximization
Profit maximization
 
Aircraft ground handling
Aircraft ground handlingAircraft ground handling
Aircraft ground handling
 
overview on airport operation
overview on airport operationoverview on airport operation
overview on airport operation
 
Amadeus Quick Reference Training
Amadeus Quick Reference Training Amadeus Quick Reference Training
Amadeus Quick Reference Training
 
General Aviation Security
General Aviation SecurityGeneral Aviation Security
General Aviation Security
 
Airline Reservation System
Airline Reservation SystemAirline Reservation System
Airline Reservation System
 
Introduction to Airline Information System
Introduction to Airline Information SystemIntroduction to Airline Information System
Introduction to Airline Information System
 
history of airport security
history of airport security               history of airport security
history of airport security
 
Flight reservation and ticketing system Final PPT
Flight reservation and ticketing system Final PPTFlight reservation and ticketing system Final PPT
Flight reservation and ticketing system Final PPT
 
Basic Passenger Tariff Training
Basic Passenger Tariff TrainingBasic Passenger Tariff Training
Basic Passenger Tariff Training
 
APPLY ADVANCED AIRFARE RULES AND PROCEDURES
APPLY ADVANCED AIRFARE RULES AND PROCEDURESAPPLY ADVANCED AIRFARE RULES AND PROCEDURES
APPLY ADVANCED AIRFARE RULES AND PROCEDURES
 
Airline reservation system
Airline reservation system Airline reservation system
Airline reservation system
 
Airline business- Airline Industry III
Airline business- Airline Industry IIIAirline business- Airline Industry III
Airline business- Airline Industry III
 
Flight departure delay prediction
Flight departure delay predictionFlight departure delay prediction
Flight departure delay prediction
 
Online Airline Ticket reservation System
Online Airline Ticket reservation SystemOnline Airline Ticket reservation System
Online Airline Ticket reservation System
 

Similar to simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com

Charles WilliamsSystems Analysis, Design and Integration(IT425-1.docx
Charles WilliamsSystems Analysis, Design and Integration(IT425-1.docxCharles WilliamsSystems Analysis, Design and Integration(IT425-1.docx
Charles WilliamsSystems Analysis, Design and Integration(IT425-1.docxchristinemaritza
 
Air transport evolution 2011 by Luis Francisco
Air transport evolution 2011 by Luis FranciscoAir transport evolution 2011 by Luis Francisco
Air transport evolution 2011 by Luis FranciscoLuis Francisco
 
Principles of airline and airport management
Principles of airline and airport managementPrinciples of airline and airport management
Principles of airline and airport managementJetline Marvel
 
Amadeus Quick Reference Guide
Amadeus Quick Reference GuideAmadeus Quick Reference Guide
Amadeus Quick Reference GuideA. S. M. Raiahan
 
Basic Reservation and Ticketing AMADEUS selling platform connect bsp
Basic Reservation and Ticketing AMADEUS  selling platform connect bspBasic Reservation and Ticketing AMADEUS  selling platform connect bsp
Basic Reservation and Ticketing AMADEUS selling platform connect bspKORNKAWIN JIRACHAIYAKAN
 
Air Transport evolution by Luis S Francisco
Air Transport evolution by Luis S FranciscoAir Transport evolution by Luis S Francisco
Air Transport evolution by Luis S FranciscoLuis Francisco
 
The Federal Aviation Administration Should Not Shut Down...
The Federal Aviation Administration Should Not Shut Down...The Federal Aviation Administration Should Not Shut Down...
The Federal Aviation Administration Should Not Shut Down...Cindy Wooten
 
Flight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxFlight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxAKHIL969626
 
ITA-software-travel-complexity.pdf
ITA-software-travel-complexity.pdfITA-software-travel-complexity.pdf
ITA-software-travel-complexity.pdfmustafe39
 
Delta Airlines Booking Process
Delta Airlines Booking ProcessDelta Airlines Booking Process
Delta Airlines Booking ProcessFlights Assistance
 
Pre Process for United
Pre Process for UnitedPre Process for United
Pre Process for Unitedjamieblocker
 
Introduction to airline reservation systems
Introduction to airline reservation systemsIntroduction to airline reservation systems
Introduction to airline reservation systemsJava and .NET Architect
 
Air Travel Analytics in SAS
Air Travel Analytics in SASAir Travel Analytics in SAS
Air Travel Analytics in SASRohan Nanda
 
Spice jet presentation B2B Insights
Spice jet presentation B2B InsightsSpice jet presentation B2B Insights
Spice jet presentation B2B InsightsT HARI KUMAR
 
[Challenge:Future] Database for Airport
[Challenge:Future] Database for Airport[Challenge:Future] Database for Airport
[Challenge:Future] Database for AirportChallenge:Future
 

Similar to simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com (20)

Charles WilliamsSystems Analysis, Design and Integration(IT425-1.docx
Charles WilliamsSystems Analysis, Design and Integration(IT425-1.docxCharles WilliamsSystems Analysis, Design and Integration(IT425-1.docx
Charles WilliamsSystems Analysis, Design and Integration(IT425-1.docx
 
Airport Procedures.pptx
Airport Procedures.pptxAirport Procedures.pptx
Airport Procedures.pptx
 
Air transport evolution 2011 by Luis Francisco
Air transport evolution 2011 by Luis FranciscoAir transport evolution 2011 by Luis Francisco
Air transport evolution 2011 by Luis Francisco
 
Principles of airline and airport management
Principles of airline and airport managementPrinciples of airline and airport management
Principles of airline and airport management
 
Airmaxsystem
AirmaxsystemAirmaxsystem
Airmaxsystem
 
Amadeus Quick Reference Guide
Amadeus Quick Reference GuideAmadeus Quick Reference Guide
Amadeus Quick Reference Guide
 
A guide of Ground Vehicles Operations
A guide of Ground Vehicles OperationsA guide of Ground Vehicles Operations
A guide of Ground Vehicles Operations
 
Basic Reservation and Ticketing AMADEUS selling platform connect bsp
Basic Reservation and Ticketing AMADEUS  selling platform connect bspBasic Reservation and Ticketing AMADEUS  selling platform connect bsp
Basic Reservation and Ticketing AMADEUS selling platform connect bsp
 
Air Transport evolution by Luis S Francisco
Air Transport evolution by Luis S FranciscoAir Transport evolution by Luis S Francisco
Air Transport evolution by Luis S Francisco
 
The Federal Aviation Administration Should Not Shut Down...
The Federal Aviation Administration Should Not Shut Down...The Federal Aviation Administration Should Not Shut Down...
The Federal Aviation Administration Should Not Shut Down...
 
Flight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxFlight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docx
 
chapter-7 (1).pptx
chapter-7 (1).pptxchapter-7 (1).pptx
chapter-7 (1).pptx
 
ITA-software-travel-complexity.pdf
ITA-software-travel-complexity.pdfITA-software-travel-complexity.pdf
ITA-software-travel-complexity.pdf
 
Essence of Travel Technology
Essence of Travel TechnologyEssence of Travel Technology
Essence of Travel Technology
 
Delta Airlines Booking Process
Delta Airlines Booking ProcessDelta Airlines Booking Process
Delta Airlines Booking Process
 
Pre Process for United
Pre Process for UnitedPre Process for United
Pre Process for United
 
Introduction to airline reservation systems
Introduction to airline reservation systemsIntroduction to airline reservation systems
Introduction to airline reservation systems
 
Air Travel Analytics in SAS
Air Travel Analytics in SASAir Travel Analytics in SAS
Air Travel Analytics in SAS
 
Spice jet presentation B2B Insights
Spice jet presentation B2B InsightsSpice jet presentation B2B Insights
Spice jet presentation B2B Insights
 
[Challenge:Future] Database for Airport
[Challenge:Future] Database for Airport[Challenge:Future] Database for Airport
[Challenge:Future] Database for Airport
 

Recently uploaded

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 

simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com

  • 1. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 1 INTRODUCTION Airlines will provide you with an overall understanding of the airline industry and a wealth of Information you will need to apply your new skills and knowledge. You will learn about the scope and structure of the aviation industry including the impact of deregulation. We will take you on a tour of Airports and their services, and learn how airplanes fly. You will discover how airlines adapt to the ever-changing socio-economic, Environmental, industrial and technical changes that impact the Airline industry as a whole. Being a highly competitive business, Airlines must priorities the importance of providing employees with the best training programmers to ensure they acquire the proper Skills and knowledge of the business. An airline is a company that provides air transport services for travelling passengers and freight. Airlines lease or own their aircraft with which to supply these services and may form partnerships or alliances with other airlines for mutual benefit. TWA Douglas DC-3 in 1940. The DC-3, often regarded as one of the most influential aircraft in the history of commercial aviation, revolutionized the aviation industry. Tony Jannus conducted the United States' first scheduled commercial airline flight on 1 January 1914 for the St. Petersburg-Tampa Airboat Line. Why Space Flight Can't Become Popular the Way Airplanes Did. March 12, 2013 By. The Wright Brothers first flew in 1903. By 1914, people were experimenting with commercial airlines, and by the 1930s, there were many regularly-scheduled airline services in the US and around the world.
  • 2. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 2 ADVANTAGES  The biggest advantage of flying is that it is often the fastest way to get from one place to another, especially when long distances are involved. It helps us save a lot of time, so we can do more things. Secondly, I think the comfort of air travel makes people satisfy. When we travelling by air, can sit comfortably in an on chair, Reading magazines, listen to music, Read books, and play games or watching a free film on television  The process of making arrangements to fly can be quite convenient. A plane ticket can be purchased by telephone or on the internet. We don’t have to cope with crowed at airport as other stations for buying tickets  The flight attendants are always friendly, we can “Call” them when we need. Moreover, some meals have test well on the plane. DISADVANTAGES  Apart from these advantages, however, travelling by air has its disadvantages, too. First of all, flying is often the most expensive from of transportation, especially if reservations are not made well in advance, if amounts to hundreds of dollars or even millions.  Some people might not be able to afford to fly on the budget airline. Then air travels have the reputation of being dangerous and even hardened travelers are intimidated by them. There are plane crashes in which the crew and passengers have died.
  • 3. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 3 REQUIREMENTS  Each aircrafts is identified by a unique number of its ID, Aircraft number that identify the plane and this includes the information about the number of seats available in it’s and manufacturing and manufactured date of aircrafts.  Each Route is identified by its own unique ID, and a unique route code. Route must have airport from where the flight will be take off, and the flight destination.  They have airfare for individual’s route. Each airfare is identified by Airfare ID and the airfare for different route is identified by route id with flight date, departure date, arrival date and net fare.  Airline provides discounts for many special persons and so many.....  Each countries is identify through its unique country ID and name.  States of in the country are also identifying with the help of state name.  Airline must have maintained the contact details of each passenger’s. Identifying the individual passengers contact details through unique contact details id.  Identifying the individual passengers through passengers ID. And they must have every passengers Name, Address, Age, Nationality, Contacts.  Airline Company has several branches in many different states of the country. Each branch has been identified through branch ID.  Airlines have many employees to provide well services to his customers. Each employee has a unique employee id with name, address, associated branch, designation, etc...  Each transactions of the passenger are finding through its unique transaction ID. Along with booking date, departure date, relevant information.
  • 4. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 4 ENTITY STRUCTURES WITH RELEVANT ATTRIBUTES Aircrafts Field Data Type Description Constraints AcID INT Field will store unique row number. Primary Key AcNumber Varchar(32) Aircraft number that identifies the plane. NOT ULL Capacity INT No. of seats available. NOT NULL MfdBy Varchar(128) Manufacturing company. NOT NULL MfdOn DATETIME Manufactured date of aircraft. NOT NULL Route Field Data Type Description Constraints RtID INT Stores unique row id. Primary Key Airport Varchar(32) From where the flight will take off. NOT NULL Destination Varchar (32) Flight destinations. NOT NULL RouteCode Varchar(16) A unique Route code generated using Source & Destination of flight. NOT NULL UNIQUE 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 FSC Currency Stores fuel surcharge amount. NOT NULL
  • 5. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 5 Flight_Schedule Field Data Type Description Constraints FlID INT Unique number to identify the flight. Primary Key FlightDate DATETIME Date of flight. NOT NULL Departure DATETIME Stores the departure time of flight. Arrival DATETIME Stores the arrival time of flight on destination. AirCraft INT Aircraft number that will fly, a number from Aircraft table. Foreign Key NetFare INT To determine total fare of flight, an ID from Air_Fare table. Foreign Key Discounts Field Data Type Description Constraints DiID INT Unique row id. Primary Key Title Varchar(32) Label to know discount. NOT NULL 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 Title Varchar(32) Label for charge. NOT NULL Amount INT Amount of charge in %. NOT NULL Description Varchar(255) Describe cause of charge.
  • 6. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 6 Countries Field Data Type Description Constraints CtID INT Unique row id. Primary Key Country Nam Varchar(32) Room to store country name NOT NULL State Field Data Type Description Constraints StID INT Unique row id. Primary Key StateName Varchar(32) State name will take place here. Country INT PK from Country table. Foreign Key Contact_Details Field Data Type Description Constraints CnID INT Unique row id. Primary Key Email Varchar(16) Passenger’s contact email for transaction about flights. NOT NULL Cell Varchar(16) Passenger’s contact cell no for transaction about flights. NOT NULL Tel Varchar(16) Passenger’s contact telephone no. for transaction about flights. Street Varchar(64) Street address of the passengers. NOT NULL State INT PK from State table. Foreign Key
  • 7. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 7 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 Contacts INT ContactID from Contact_Details table. Foreign Key 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 EmpID INT Unique number to identity employee, unique on entire system. Primary Key Name Varchar(32) Employee name NOT NULL Address Varchar(32) Employee address NOT NULL Branch INT Associated branch id from Branch Table Foreign Key Designation Varchar(32) Working duty position. NOT NULL Email Varchar(32) Contact email of the employee NOT NULL
  • 8. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 8 Tel Varchar(16) Contact telephone number. Ext INT Ext number of employee cabinet, if applicable. 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 Passenger INT Transaction creator passengers row id to associate booking/cancellation, payments etc. Foreign Key Flight INT Flight no, a PK of Flight_Schedule to determine flying details & costs. Foreign Key Type BIT Reservation/Cancellation NOT NULL Employee INT Reservation agent, a row id of employee who helps the passenger to make transaction. Foreign Key Charges INT If transaction is cancellation, charges may apply as per business rules. Foreign Key Discount INT Discount offers may apply based on scheme criteria. Foreign Key Total INT Calculated value of actual payable cost by customer to make a transaction. NOT NULL
  • 9. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 9 ER DIAGRAM
  • 10. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 10 CREATING THE TABLES 1. Create table AIRCRAFTS_7 ( AcId int not null, AcNumber varchar(32) not null, Capacity int not null, MfdBy varchar(128) not null, MfdOn date not null, primary key(AcId) ); 2. Create table ROUTE_7 ( RtID int not null, Airport varchar(32) not null, Destination varchar(32) not null, RouteCode varchar(16) not null, primary key(RtID), UNIQUE(RouteCode) ); 3. Create table AIRFARE_7 ( AfID CHAR(6), Route int, Fare int not null, FSC int not null, primary key(AfID),
  • 11. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 11 foreign key(Route) references ROUTE_7(RtID) ); 4. Create table FLIGHT_SHEDULE_7 ( FlId int, FlightDate date not null, Departure CHAR(9), Arrival CHAR(9), AirCraft int, NetFare char(6), primary key(FlId), foreign key(AirCraft) references AIRCRAFTS_7(AcId), foreign key(NetFare) references AIRFARE_7(AfID) ); 5. Create table DISCOUNTS_7 ( DiID int, Title varchar(32) not null, Amount int not null, Description varchar(255), primary key(DiID) ); 6. Create table CHARGES_7 ( ChId int, Title varchar(32) not null, Amount int not null,
  • 12. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 12 Description varchar(255), primary key(ChId) ); 7. Create table COUNTRIES_7 ( CtID int, CountryName varchar(32) not null, primary key(CtID) ); 8. Create table STATE_7 ( STID INT, StateName varchar(32), Country int, primary key(STID), foreign key(Country)references COUNTRIES_7(CtID) ); 9. Create table Contact_Details_7 ( CnID int, Email varchar(16) not null, Cell varchar(16) not null, Tel varchar(16), Street varchar(64) not null, State int not null, primary key(CnID), FOREIGN KEY(STATE)REFERENCES STATE_7(STID)
  • 13. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 13 ); 10. Create table PASSENGERS_7 ( PsID int, Name varchar(32) not null, Address varchar(32) not null, Age int not null, Nationalities varchar(16) not null, Contacts int, primary key(PsID), foreign key(Contacts)references Contact_Details_7(CnID) ); 11. Create table BRANCHES_7 ( BrID int not null, Center varchar(16) not null, Address varchar(32) not null, State int not null, primary key(BrID) ); 12. Create table EMPLOYEES_7 ( EmpID int, Name varchar(32) not null, Address varchar(32) not null, Branch int, Destintion varchar(32) not null,
  • 14. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 14 Email varchar(32), Tel varchar(16), Ext int, primary key(EmpID), foreign key(Branch)references BRANCHES_7(BrID) ); 13. Create table TRANSACTIONS_7( TsID int not null, BookingDate date not null, DepartureDate date not null, Passenger int, Flight int, Type int, Employee int, Charges int, Discount int, primary key(TsID), foreign key(Passenger)references PASSENGERS_7(PsID), foreign key(Flight)references FLIGHT_SHEDULE_7(FlID), foreign key(Employee)references EMPLOYEES_7(EmpID), foreign key(Charges)references CHARGES_7(ChID), foreign key(Discount)references DISCOUNTS_7(DiID) );
  • 15. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 15 DESCRIBING THE TABLES DESCRIBE AIRCRAFTS_7; DESCRIBE ROUTE_7; DESCRIBE AIRFARE_7; DESCRIBE FLIGHT_SHEDULE_7; DESCRIBE DISCOUNTS_7; DESCRIBE CHARGES_7; DESCRIBE COUNTRIES_7; DESCRIBE STATE_7; DESCRIBE CONTACT_DETAILS_7; DESCRIBE PASSENGERS_7; DESCRIBE BRANCHES_7; DESCRIBE EMPLOYEES_7; DESCRIBE TRANSACTIONS_7; INSERTING VALUES INTO TABLES Aircrafts_7 INSERT INTO AIRCRAFTS_7 VALUES(1,'ATR 72-500',75,'KINGFISHER AIRLINES','23- apr-1998'); INSERT INTO AIRCRAFTS_7 VALUES(2,'ATS 90-200', 175,'BUTTERFLY AIRLINES','10- jan-1990'); INSERT INTO AIRCRAFTS_7 VALUES(3,'MNR097',200,'SEPER_FAST AIRLINES','08- may-2000'); INSERT INTO AIRCRAFTS_7 VALUES(4,'ATR 72-500',50,'DUBAI EMIRATES','06-jun- 2004'); INSERT INTO AIRCRAFTS_7 VALUES(5,'ATR 72-500',80,'Deccan AIRLINES','03-dec- 1980'); select * from AIRCRAFTS_7; Route_7 insert into ROUTE_7 values(110,'KARNATAKA','Pokhara','KTM-PKR'); insert into ROUTE_7 values(119,'USA','CHENNI','TN-CHN'); insert into ROUTE_7 values(114,'UAE','BANGLORE','KA-BAN'); insert into ROUTE_7 values(134,'ENGLAND','CALICUT','KL-CALK');
  • 16. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 16 insert into ROUTE_7 values(165,'NEPAL','BURJKHALEEFA','DUB-BKH'); Airfare_7 insert into AIRFARE_7 values('111',110,8600,12); insert into AIRFARE_7 values('222',119,10000,10); insert into AIRFARE_7 values('333',114,6000,12); insert into AIRFARE_7 values('444',134,25000,12); insert into AIRFARE_7 values('555',165,3000,12); select * from AIRFARE_7; Flight_shedule_7 INSERT INTO FLIGHT_SHEDULE_7 VALUES(6,'23-JAN-2016','23:20','1:20',1,111); INSERT INTO FLIGHT_SHEDULE_7 VALUES(7,'26-FEB-2016','20:10','1:40',2,222); INSERT INTO FLIGHT_SHEDULE_7 VALUES(8,'08-MAY-2016','09:20','11:00',3,333); INSERT INTO FLIGHT_SHEDULE_7 VALUES(9,'16-MAR-2016','04:00','06:15',4,444); INSERT INTO FLIGHT_SHEDULE_7 VALUES(10,'10-SEP-2016','03:20','08:05',5,555); SELECT * FROM FLIGHT_SHEDULE_7; Discount_7 INSERT INTO DISCOUNTS_7 VALUES(1,'Childrens',10,'Discount is provoided to all childrens under age of 10 years'); INSERT INTO DISCOUNTS_7 VALUES(2,'Freedom fighters',15,'Discount is provoided to indian freedom fighters'); INSERT INTO DISCOUNTS_7 VALUES(3,'Senior citizens',05,'Discount is provoided to all Senior citizens above the age of 60'); INSERT INTO DISCOUNTS_7 VALUES(4,'Handicafts',15,'Discount is provoided to all Handicafts'); INSERT INTO DISCOUNTS_7 VALUES(5,'Govt employees',20,'Discount is provoided to all Indian Govt. Employees'); select * from DISCOUNTS_7;
  • 17. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 17 Charges_7 INSERT INTO CHARGES_7 VALUES(10,'Urgent cancellation',550,'33% will be charged for cancellation for booking within 11 hrs from flight time'); INSERT INTO CHARGES_7 VALUES(20,'Route change',300,'10% will be charged for Route change within 4 hrs from flight time'); INSERT INTO CHARGES_7 VALUES(30,'Class change',600,'15% will be charged for Class change within 6 hrs from flight time'); INSERT INTO CHARGES_7 VALUES(40,'Extra booking',2000,'05% will be charged for Extra booking within 11 hrs from flight time'); INSERT INTO CHARGES_7 VALUES(50,'Breaking rules',550,'20% will be charged for Breaking rules in flight'); select * from CHARGES_7; Countries_7 insert into COUNTRIES_7 values(91,'INDIA'); insert into COUNTRIES_7 values(01,'USA'); insert into COUNTRIES_7 values(62,'AUSTRALIA'); insert into COUNTRIES_7 values(977,'NEPAL'); insert into COUNTRIES_7 values(971,'UAE'); select * from COUNTRIES_7; State_7 insert into STATE_7 values('29','KARNATAKA',91); insert into STATE_7 values('213','CALIFORNIA',01); insert into STATE_7 values('121','TASMENIA',62); insert into STATE_7 values('545','KATHMANDU',977); insert into STATE_7 values('766','ABU-DHABI',971); Contact_details_7 insert into CONTACT_DETAILS_7 values(1,'hello@gmail.com','9845098450',NULL,'xyz street',29); insert into CONTACT_DETAILS_7 values(2,'hai@gmail.com','9845098450',NULL,'ABC street',213);
  • 18. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 18 insert into CONTACT_DETAILS_7 values(3,'supper@gmail.com','9845098450',NULL,'xyz street',121); insert into CONTACT_DETAILS_7 values(4,'comput@gmail.com','9845098450',NULL,'xyz street',545); insert into CONTACT_DETAILS_7 values(5,'soft@gmail.com','9845098450',NULL,'xyz street',766); select* from CONTACT_DETAILS_7; Passengers_7 insert into PASSENGERS_7 values(147,'Shankar_kumar','Sinamanaga,#31',25,'Nepalese',1); insert into PASSENGERS_7 values(258,'KISHORE P','41,KOLLEGALA',35,'Indian',2); insert into PASSENGERS_7 values(369,'JOHN','998,CALIFORNIA',45,'American',3); insert into PASSENGERS_7 values(456,'FRANKLIN','675,TASMENIA',55,'AUSTRALIAN',4); insert into PASSENGERS_7 values(582,'ABDULLA','987,ABU-DHABI',23,'Khaleefas',5); select* from PASSENGERS_7; Branches_7 insert into BRANCHES_7 values(01,'KARNATAKA','New road,BANGLORE',29); insert into BRANCHES_7 values(02,'CALIFORNIA','ARCH ROAD,CALIFORNIA',213); insert into BRANCHES_7 values(03,'TASMENIA','MAINROAD,TANGENIA',545); insert into BRANCHES_7 values(04,'KATHMANDU','New road,BARKONDA',26); insert into BRANCHES_7 values(05,'ABU-DHABI','NEAR BURJ,KHALEEFA',766); select* from BRANCHES_7; Employees_7 INSERT INTO EMPLOYEES_7 VALUES(120,'Kishore','#32,Kollegal',01,'Sales Execu- tive','kishorep@gmail.com','9900236598',null); INSERT INTO EMPLOYEES_7 VALUES(121,'JAFAR','#32,YAANDUR',02,'Sales Execu- tive','JAFAR@gmail.com','9900236599',null); INSERT INTO EMPLOYEES_7 VALUES(122,'SANJAY','#32,Kollegal',03,'SECURITY','SANJAY@gmail.com','9740236598',n ull);
  • 19. AIRLINE DATABASE MANAGEMENT SYSTEM GPT. CHN DEPT. CS&E Page 19 INSERT INTO EMPLOYEES_7 VALUES(123,'MAHESH','#32,T.NARSIPURA',01,'SUPERVISOR','MAHESH@gmail.com','99 86236598',null); select* from EMPLOYEES_7; Transactions_7 insert into TRANSACTIONS_7 values(1,'23-oct-2016','28-oct-2016',147,6,null,120,10,1); insert into TRANSACTIONS_7 values(2,'24-NOV-2016','29-oct-2016',258,7,null,121,20,2); insert into TRANSACTIONS_7 values(3,'25-oct-2016','28-oct-2016',369,8,null,122,30,3); insert into TRANSACTIONS_7 values(4,'23-oct-2016','28-oct-2016',456,9,null,123,40,4); OUTPUT Fig: - Output of Airline database management system