Documente Academic
Documente Profesional
Documente Cultură
com
Booking System
Airline Reservation
ABSTRACT
Airline Reservation is database software, which maintains the information about
reservations in airline. This is made user friendly so that the information is retrieved and
updated easily. This software is developed to maintain all the information about certain
airports, corresponding flights, routes etc.
This software is developed in Visual Basic because of its flexible, fast and rich
facilities. This software can be used by any Domestic Airline Service. As the software is very
user friendly and self explanatory, a little experience is enough to start using the software.
The working with this software is made easy with good interface.
www.freestudentprojects.com
Booking System
Airline Reservation
CONTENTS
1. Introduction
2. Review of Literature
2.1 Present System
2.2 Proposed System
2.3 Requirements and Features
3. Design of Airline Reservation System.
3.1
3.2
www.freestudentprojects.com
Booking System
Airline Reservation
1. INTRODUCTION
Database
A collection of data that is treated as a unit. Composed of logical and physical
structures, databases are designed to store and retrieve related information.
A database object is anything defined and stored in a database. The following is a list
of database objects: tables, views, indexes, synonyms, database links, roles, sequences,
snapshots, users, triggers, packages, procedures, and functions.
Database Structure
An Oracle database has both a physical and a logical structure. Because the physical
and logical server structures are separate, the physical storage of data can be managed
without affecting the access to logical storage structures.
www.freestudentprojects.com
Booking System
Airline Reservation
Table
The basic unit of data storage in a relational database management system. Every
table has a table name and a set of columns and rows in which the data is stored. Each
column is given a column name, a data type (defining characteristics of the data to be entered
in the column), and a width (quantity of space to allocate for data to be entered into the
column).
View
Customized presentation of data from one or more tables.
Index
A database object created to increase the performance of data retrieval. It provides a
fast access path to data in a database. Indexes point directly to the location of the rows
containing specified data.
Database link
A database link is an object in the database that allows you to access objects on a
remote database.
Trigger
A stored procedure that is fired (implicitly executed) when an INSERT, UPDATE, or
DELETE statement is issued against the associated table.
www.freestudentprojects.com
Booking System
Airline Reservation
Procedure
A set of SQL and PL/SQL statements that are grouped together as a unit to solve a
specific problem or perform a set of related tasks.
Function
A set of SQL and PL/SQL statements grouped together as an executable unit to
perform a task.
History of SQL
The paper, "A Relational Model of Data for Large Shared Data Banks," by Dr. E. F.
Codd, was published in June 1970 in the Association of Computer Machinery (ACM) journal,
Communications of the ACM. Codd's model is now accepted as the definitive model for
relational database management systems (RDBMS). The language, Structured English Query
Language (SEQUEL) was developed by IBM Corporation, Inc. to use Codd's model.
SEQUEL later became SQL. In 1979, Relational Software, Inc. (now Oracle Corporation)
introduced the first commercially available implementation of SQL. Today, SQL is accepted
as the standard RDBMS language.
www.freestudentprojects.com
Booking System
Airline Reservation
querying data
www.freestudentprojects.com
Booking System
Airline Reservation
Command
Purpose
DELETE
EXPLAIN PLAN
INSERT
LOCK TABLE
SELECT
www.freestudentprojects.com
Booking System
Airline Reservation
Purpose
COMMIT
ROLLBACK
SAVEPOINT
SET TRANSACTION
a save point.
To establish a point back to which you may roll.
To establish properties for the current transaction.
2. Review Of Literature
www.freestudentprojects.com
Booking System
Airline Reservation
Disadvantages:
Storing every transaction information in the form of files is an overload of work.
All the primary operations include searching the records of airport, flight and route.
This searching process is very time consuming.
Since the information is stored in files redundancy of data (storing same data multiple
times) is inevitable.
Redundancy causes inconsistent and wastage of disk space.
As the modifications are to be done, files size increases.
Maintaining files and ledgers is tedious process.
When multiple users share a database unauthorized persons can access the file which
is undesired.
www.freestudentprojects.com
Booking System
Airline Reservation
Data and its storage may be considered to be the heart of any information system. Data has to
be up-to-date, accurate, accessible in the required form and available to one or perhaps many
users at the same time.
In our system a RDBMS (Relational Database Management System) is used to manage the
details about all airport, aircraft, information about all flights, routes. This software is aiming
towards providing these details easily. This reduces the time consuming work involved in file
processing and provides detail within seconds.
A user friendly GUI is provided to enter the information and little training is needed to use
this software.
Advantages:
Lot of time can be saved by using a RDBMS which retrieves/stores accurate data.
10
www.freestudentprojects.com
Booking System
Airline Reservation
Requirements:Minimum: 64MB RAM, P-III 600MHz, in9x or NT, Visual Basic 6.0, Oracle 7.3
Recommended: 128MB RAM, P-III 866MHz, MSDN collection
Features and facilities: Allow Addition/Modification/Deletion of airport, route, aircraft, tariff and fares
records.
Provides MDI user environment.
Provide list of all available flights.
Provide facilities to easily navigate and select relevant information with user friendly
interface.
Provides user to set window position dynamically.
Reservation of tickets is made easier.
11
www.freestudentprojects.com
Booking System
Airline Reservation
Airport
AIRPORT
ANAME
RESERVATIONS
CHECKIN
Route
ROUTE NO
RDESCRIPTION
Fares
FARETYPE
FDESCRIPTION
CONDITIONS
TARIFF
ROUTENO FARETYPE
PRICE
Aircraft
AIRCRAFT TYPE
ADESCRIPTION
NO OF SEATS
Flight
FLIGHTNO FROMAP TOAP
DEPTTIME ARRTIME
SERVICE
AIRCRAFTTYPE ROUTENO
Passenger
PID
NAME
ADDRESS
TELE NO
Ticket
TICKET NO
TICKET DATE
PID
Itinerary
TICKET NO
FLIGHT NO
LEG NO
12
FLIGHT DATE
FARE TYPE
www.freestudentprojects.com
Booking System
Airline Reservation
Airport
SQL> CREATE TABLE Airport ( airport char(4) constraint pk_ap primary key,
aname varchar(50),
checkin varchar(50),
resvtns varchar(12) );
SQL> desc airport;
Name
Null?
Type
------------------------------- -------- -----------------------AIRPORT
NOT NULL
CHAR(4)
ANAME
VARCHAR2(50)
CHECKIN
VARCHAR2(50)
RESVTNS
VARCHAR2(12)
Route
SQL> CREATE TABLE Route ( routeno number(3) constraint pk_rn primary key,
rdescription varchar(40) );
SQL> desc route;
Name
Null?
Type
------------------------------- -------- ----------------------ROUTENO
NOT NULL
NUMBER(3)
RDESCRIPTION
VARCHAR2(40)
Fares
SQL> CREATE TABLE Fares ( faretype char(3) constraint pk_ft primary key,
fdescription varchar(25),
conditions varchar(40) );
SQL> desc fares;
Name
Null?
Type
------------------------------- -------- -------------------------FARETYPE
NOT NULL
CHAR(3)
FDESCRIPTION
VARCHAR2(25)
CONDITIONS
VARCHAR2(40)
Tariff
SQL> CREATE TABLE Tariff ( routeno number(2) not null constraint fk_trn references
route(routeno) on delete cascade, faretype char(3) not null ,
price number(8,2) );
13
www.freestudentprojects.com
Booking System
Airline Reservation
Name
Null?
Type
------------------------------- -------- ----------------------ROUTENO
NOT NULL
NUMBER(2)
FARETYPE
NOT NULL
CHAR(3)
PRICE
NUMBER(8,2)
Aircraft
SQL> CREATE TABLE Aircraft ( aircrafttype char(3) constraint pk_at primary key,
adescription varchar(40),
noseats number(4) );
SQL> desc aircraft;
Name
Null?
Type
------------------------------- -------- -------------------------AIRCRAFTTYPE
NOT NULL
CHAR(3)
ADESCRIPTION
VARCHAR2(40)
NOSEATS
NUMBER(4)
Flight
SQL> CREATE TABLE Flight ( flightno varchar(5) constraint pk_fn primary key,
fromairport char(4),
toairport char(4),
deptime char(10),
arrtime char(10),
service varchar(20),
aircrafttype char(3) constraint fk_at references
aircraft(aircrafttype) on delete cascade,
routeno number(3) not null constraint fk_frn references,
route(routeno) on delete cascade);
SQL> desc flight;
Name
Null?
Type
------------------------------- -------- ----------------------------FLIGHTNO
NOT NULL
VARCHAR2(5)
FROMAIRPORT
CHAR(4)
TOAIRPORT
CHAR(4)
DEPTIME
CHAR(10)
ARRTIME
CHAR(10)
SERVICE
VARCHAR2(20)
AIRCRAFTTYPE
CHAR(3)
ROUTENO
NOT NULL
NUMBER(3)
Passenger
14
www.freestudentprojects.com
Booking System
Airline Reservation
SQL> CREATE TABLE Passenger ( pid number(4) constraint pk_pid primary key,
name varchar(20),
address varchar(40),
telno varchar(12) );
SQL> desc passenger;
Name
Null?
Type
------------------------------- -------- ----- ----------------------PID
NOT NULL
NUMBER(4)
NAME
VARCHAR2(20)
ADDRESS
VARCHAR2(40)
TELNO
VARCHAR2(12)
Ticket
SQL> CREATE TABLE Ticket ( ticketno number(6) constraint pk_tn primary key,
ticketdate date,
pid number(4) constraint fk_pid references passenger(pid)
on delete cascade );
Itinerary
SQL> CREATE TABLE Itinerary (
ticketno number(6) constraint fk_tn not null references ticket(ticketno) on delete cascade,
flightno varchar(5) constraint fk_fn not null references flight(flightno) on delete cascade,
legno number(2) not null,
flightdate date,
faretype char(3)
constraint fk_ft referencesfares(faretype) on delete cascade) ;
SQL> desc itinerary;
Name
Null?
Type
------------------------------- -------- ------------------------------------TICKETNO
NOT NULL
NUMBER(6)
FLIGHTNO
NOT NULL
VARCHAR2(5)
LEGNO
NOT NULL
NUMBER(2)
FLIGHTDATE
DATE
FARETYPE
CHAR(3)
15
www.freestudentprojects.com
Booking System
Airline Reservation
16
www.freestudentprojects.com
Booking System
SELECT
SELECTING ROWS
SELECT NoSeats
FROM Aircraft
WHERE AircaftType = 'DC9' ;
COMPARISON OPERATORS
SELECT ADescription, NoSeats
FROM Aircraft
WHERE NoSeats > 50 ;
SELECT Pid, Name, Address
FROM Passenger
WHERE Pid NOT BETWEEN 25 AND 35;
SELECT TicketNo, FlightNo
FROM Itinerary
WHERE FlightNo IN ('BD54','BD80','BD412', 'BD582', 'BD332') ;
AGGREGATE FUNCTIONS
SELECT COUNT(*)
FROM Route ;
SELECT AircraftType, AVG(NoSeats)
FROM Aircraft ;
UPDATE
17
Airline Reservation
www.freestudentprojects.com
Booking System
UPDATE Tariff
SET Price = Price + 5
WHERE RouteNo = 13
AND FareType = 'STS' ;
INSERT
DELETE
FROM Passenger
WHERE Pid IN (91, 92, 93, 94) ;
ORDERING
GROUPING
SELECT TicketNo, COUNT(FlightNo)
FROM Itinerary
WHERE TicketNo BETWEEN 100010 AND 100020
GROUP BY TicketNo ;
JOINING TABLES
SELECT NoSeats
FROM Aircraft, Flight
WHERE FlightNo = 'BD80' AND Aircraft.AircraftType = Flight.AircraftType ;
TABLE REFERENCES
18
Airline Reservation
www.freestudentprojects.com
Booking System
Airline Reservation
SELECT AircraftType
FROM Aircraft
WHERE NoSeats = ( SELECT MAX(NoSeats)
FROM Aircraft );
4. Form Snapshots
19
www.freestudentprojects.com
Booking System
Main Form
20
Airline Reservation
www.freestudentprojects.com
Booking System
Reservation Form
21
Airline Reservation
www.freestudentprojects.com
Booking System
Airline Reservation
CONCLUSION
This software project takes care of all aspect of a typical domestic airline
reservation system. This software is not suitable for continental airline reservation.
The scope of this project has been limited to relation database management
systems. We do not explore the object oriented design of database. The project aims for a
specific application (domestic airline reservation) and not for a generic purpose. The
scope of this project is limited to the use of relational design and implementation. We do
not go into concepts of storage management, data retrieval and record storage.
The standards followed during the implementation enables new programmers to
handle the source code, easily and efficiently.
Resource:
www.freestudentprojects.com
www.studentprojectcode.com
www.studentprojectideas.com
22
www.freestudentprojects.com
Booking System
23
Airline Reservation