Top Banner
CAP414 : Database Administration PROJECT ON AIRLINE RESERVATION SYSTEM SUBMITTED TO: Mr sarbjIt singh SUBMITTED BY: vikas RANA ROLL NO. 03
30

project airline reservation system

Nov 22, 2014

Download

Documents

Vicky Rana

using sql 2008
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: project airline reservation system

CAP414 : Database Administration

PROJECT ON

AIRLINE RESERVATION SYSTEM

SUBMITTED TO:

Mr sarbjIt singh

SUBMITTED BY:

vikas RANA

ROLL NO. 03

REG. NO. 7010070026

BCA (H) – MCA

Page 2: project airline reservation system

CAP414 : Database Administration

ACKNOWLEDGEMENT

I would like to take this opportunity to express my gratitude towards all the people who have in various ways, helped in the successful completion of my project.

I must convey my gratitude to MR. SARBJIT KUMAR for giving me the constant source of inspiration and help in preparing the project, personally correcting my work and providing encouragement throughout the project.

I also thank all my faculty members for steering me through the tough as well as easy phases of the project in a result oriented manner with concern attention.

Page 3: project airline reservation system

CAP414 : Database Administration

content

1. PROBLEM DEFINATION

2. FEASIBILITY STUDY

o ECONOMIC FEASIBIITY

o TECHNICAL FEASIBILITY

o OPERATIONAL FEASIBILITY.

3. SYSTEM ANALYSIS

4. BLOCK DIAGRAM

5. SYSTEM DESIGN

o E-R DIAGRAMo DATA FLOW DIAGRAM o COMMANDSo SNAPSHOTo TABLES.

Page 4: project airline reservation system

CAP414 : Database Administration

PROBLEM DEFINITION

The definition of our problem lies in manual system and a fully automated system.

Manual system : The system is very time consuming and lazy. This system is more prone to errors and sometimes the approach to various problems is unstructured.

Technical system : With the advent of latest technology if we do not update our system then our business result in losses gradually with time. The technical systems contains the tools of latest trend i.e. computers printers, fax, Internet etc. The systems with this technology are very fast, accurate, user-friendly and reliable.

.

Need of Airlines systemA few factors that directs us to develop a new system are given below -:1) Faster System2) Accuracy3) Reliability4) Informative5) Reservations and cancellations from any where to any place

AIRLINES SYSTEM

CANCELLATIONRESERVATION

UPDATION

TECHNICAL SYSTEM

Page 5: project airline reservation system

CAP414 : Database Administration

FEASIBILITY STUDY

Feasibility study is to check the viability of the project under consideration. Theoretically various types of feasibilities are conducted, but we have conducted three type of feasibilities explained as under.

ECONOMIC FEASIBILITYWith the manual system the operating cost of the system is about 60 Lacks P.A.. This cost comprises salary of 25 people, stationary, building rent, electricity, water, telephone etc. But with the new system this reoccurring cost comes out to be about 20 Lacks P.A. Hence the new system is economically feasible.

TECHNICAL FEASIBILITYThe new system requires only 6 trained person to work with the system and in overall 10 people per office are sufficient. So we will identify 6 best people from existing system and train them.

As our existing system is purely manual, so we need a one time investment of Rs 4 Laks for the purchase of 7 computers, 5 Ticket printers, a laser printer, AC and networking etc. It requires 20 Lacks PA as a operating cost.

With the above details our system is technically feasible as after investing 24 Lacks in a year, the company is still saving Rs 25 Lacks PA.

OPERATIONAL FEASIBILITY

The new solution is feasible in all sence but operationally it is not. The new system demands the expulsion of at least 15 people from the company. It creates an environment of joblessness and fear among the employees. It can lead to an indefinite strike in the company also. So the management must take corrective actions prior in advance in order to start the further proceedings.

Page 6: project airline reservation system

CAP414 : Database Administration

SYSTEM ANALYSIS

This was the most important phase of my project life cycle .It had connected my maximum time .The block diagram given bellow depict various fact which were understood by one during the analysis phase.

BLOCKDIAGRAM

AIRLINE RESERVATION SYSTEM

database

REPORTS

Ticket reservationCancellation,Request for enquiry

Passenger list,Fleet infoconcessionFlight information,Fare details,

PASSENGER

BOOKINGDEPARTMENT

Flight MAINTENANCE,Booking, cancellation

RECEIVECUSTOMERREQUEST

DATA STIRAGE DATA ACCESS

PASSENGERLISTCONFIRMEDLIST

WAITING LISTCANCELLATION

Page 7: project airline reservation system

CAP414 : Database Administration

In that phase initially I had observed the system by visiting to Indiragandhi Airport(domestic terminal) and a few airline reservation agency.Pardes Airline agencies , Lotus Airline agencies.

The above block diagram is an implementation of this observation .

In passenger list : Passenger name,Address , tel_no , d_o_b, profession father name,

Fleet info: No aircraft, club_pre_capacity, economic capacity, engine type,cruisespeed,air length,

Flight info: f_name, f_code, c_code,t_exeseat no, t_economic seat no.

Move of payment: Passenger code ,Date of paid ,Current date, cash, Debit,cheque,credit.

Fare: route , destination place ,source place ,Departure time, Arrival time,Flight code,class,Fare.

Reservation: Ticket report, PNR, flight code, destination place, source place, departure time arrival time , Class, number of passenger, Age, sex, Fare, seat .

Cancellation : Pnr, ticket no, Days left, Basic amount, Cancel amount .

Page 8: project airline reservation system

CAP414 : Database Administration

E-R DIAGRAM FOR BOOKING DEPARTMENT

TEL_NO

D_O_B

PNR

NAME

FLIGHT

NUM

_NUM

DATE OF DEP

ROUTE

ADDRESS

STATUS

PASSENGER

CONFIRM VALID ?WAITING

BOOKING 1(ON THE SPOT)

NAMEPNR

MODE OF PAYMENT

CASHCHEQUE

DEBIT

CREDITPNR

FARE

CASH PAIDSTATUS

PNR

FARE

STATUS

PAID

PNR

FARE

D NO STATUS

STATUS

FARE

C NOPNR

BOOKING 2(ON THE SPOT)STAND

BY DATE

BOOKIN

GDATE

PNR

NAME

TEL_NO

Page 9: project airline reservation system

CAP414 : Database Administration

E-R DIAGRAM FOR CANCELLATION

ADDRESS

NAME

Passenger

PNR

TEL_NUM D_O_B FLIGHT_IDT_DATE

ROUTE

STATUS

SEATAVAILABLE ?

FLIGHTS

ARRIVAL

DEPARTURE

SEAT

FLIGHT_NUM

COST_ECO

COST_EXE

SEATS_ECO

SEATS_EXE

CANCEL ?

CANCEL

PNR

NAME

T_DATE

D_CANCELSTATUS

Page 10: project airline reservation system

CAP414 : Database Administration

DATA FLOW DIAGRAM

In order to design a better solution. I had designed the DFD for system including all technical processing details is given bellow

LEVEL 0 DATA FLOW DIAGRAM

PASSENGER

1.0GENERALENQUIRY

3.0BOOKINGCOUNTER

4.0CANCELLATION

2.0PASSENGERENQUIRY

BOOKINGENQUIRY

NEW PNR INFORMATION

RESERVATION REQUEST

TICKET CONFIRMATION &STATUS

CANCELLATION REQUEST

ACKNOWLEGMENT

REQUEST FOR INFORMATIONFLIGHT/FARE/DISCOUNT

INFORMATION

Page 11: project airline reservation system

CAP414 : Database Administration

LEVEL 1 DATA FLOW DIAGRAM OF GENERAL ENQUIRY SYSTEM

PASSENGER

REQUIRED INFOR MATION

REQUEST FOR INFOR MATION

1.0 GENERAL ENQUIRY

R

EQUEST

1.3DISCOUNT

INFORMATIOM

1.2FARE ENQUIRY

1.1FLIGHTENQUIRY

REQUEST

INFORMATION

REQUEST

INFORMATION

RI

R I R I

FLIGHT FARE DISCOUNT

Page 12: project airline reservation system

CAP414 : Database Administration

LEVEL 1 DATA FLOW DIAGRAM OF PASSENGER ENQUIRY

SECTION

LEVEL 2 DFD OF BOOKING

PASSENGER

NEW PNR OR REQUIRED INFORMATIONENTRY OF NEW RECORD OR EXISTINGPASSENGER ENQUIRY

PASSENGERENQUIRY

2.2PASSENGERENQUIRY

NEWPASSENGER

R

UNIQU

EPNR

R INFORMATION

REQUEST

UNIQUEPNR

REQUEST

INFO

PASSENGER PASSENGER

Page 13: project airline reservation system

CAP414 : Database Administration

PASSENGER

3.0BOOKINGCOUNTER

BOOKING NOW

ACKNOWLEDGEMENTBOOKINGLATERUPDATE

PASSENGERREQUEST

TICKET(ON THE SPOT)ACKNOLEDGEMENT(STAND BY)

3.1ON THE SPOT

3.2STAND BYBOOKING

BOOKING

SET STATUS TO CONFIRM/WAITINGCASHPAYMENTSTATUS

3.1.1MODE OFPAYMENT

STATUS(PAID OR NOT)CHOOSE MODE OF PAYMENT

ENTRY STAND BY DATE

ACKNOLEDGE

DEVIT NUMBER

STATUS

CREDIT NUMBER

STATUS

CREDIT

CHEQUE

CASH

PAY CASH

STATUS

C-NO

BOOKING

DEVIT

UPDATE PASSENGER

Page 14: project airline reservation system

CAP414 : Database Administration

LEVEL 2 DFD OF CANCELLATION

VALIDITY CHEQUE

PASSENGER

ACKNOWLEDGEMENTREQUEST FORCANCELLATION

4.0CANCELLATION SECTION

CANCELLATION

UPDATE

ACKNOLEDGEMENT

4.3VALIDITYCHEQUE

4.1CANCELTICKET

4.2RESHEDULE

ACKNOLEDGE

REQU

ESTFORCANCEL

PASSENGER

ACKNEW

DATE

PASSENGERPASSENGER

STATU

S

CHEQ

UEVALID

Page 15: project airline reservation system

CAP414 : Database Administration

RESERVATION

A PERSON COME TO RESERVED ATICKET.

THEN HE GIVES HIS FULL DETAILS

IN CUSTOMER FORM THOSE DETAILS WERE WRITTEN.

THEN COMPUTER CHEQUE THE DATE WHAT DATE THE PERSON RESER VED

DATE WISE IT CHEQUE THE FLIGHTS

IF THE FLIGHT IS FLING THAT DAY

THEN SYSTEM JUSTIFY THE SPECIFIC FLIGHT ID

IT CHEQUE ITS SEAT CLASS.

IF SEAT IS EMPTY THEN SYSTEM RESERVED THE SEAT .

THEN TICKET IS GENERATED.

THE TICKET IS CONFIRMED.

END.CANCELLATION

A PASSENGER COME TO CANCEL THE TICKET

THEN THE SYSTEM OPEN THE DELET FORM

THEN CLICK SHOE COMMAND

IT DISPLAY ALL THE PASSENGER LIST

THEN SELECT THE PNR NUMBER AND CLICK DELET OPTION

THE SYSTEM SHOW RECORD IS DELETED.

WHEN PASSENGER COME TO RESERVED A TICKET THEN SYSTEM FIND OUT THE FLIGHT DETAILS.

Page 16: project airline reservation system

CAP414 : Database Administration

SYSTEM CLICK FLIGHT DETAILS OPTION THEN THE FLIGHT DETAILS FORM OPEN

THOSE SYSTEM ARE FOLLOWED .

FLIGHT_DETALS:-

. IN FLIGHT DEAILS WE FIRST CREATE A FORM.

. THEN WE MAKE ALL TEXT BOX.

. WE CREATE COMMAN BOX.. . IN THIS FORM WE ARE USE VARIOUS COMMAND BOX THOSE ARE

PREVIOUS,FIRST,NEXT, ADD,NEW,UPDATE, DELETE, SAVE

. IN THIS FORM WE ADD NEW FLIGHT RECORD AND UPDATE IT THEN THE

VALU IS GO TO THE DATABASE.

.WHEN WE CLICK NEXT , LAST , PREVIOUS, FIRST COMMAND BUTTON

THEN IT SHOW VARIOUS THING SERIALLY.

A PERSON COME TO KNOW THE TIMMINGS FOR THE FLIGHT WHICH IS GO

FROM DELHI TO GAU.

THEN WE CLICK SHOW COMMAND BUTTON.

Page 17: project airline reservation system

CAP414 : Database Administration

DATABASE DIAGRAM

PRACTICAL IMPLEMENTATION OF PROJECT USING SQL COMMANDADS

use airlineCREATE TABLE AR_FLIGHT1(FL_NO int primary key, FL_NAME char(20), DEPT_PLACE char(20),DEST_PLACE char(20),CAPACITY int);

insert into AR_FLIGHT1 values(101,'British_air','India','England', 200);insert into AR_FLIGHT1 values(102 ,'Indian_air'

,'India','Australia',450);

Page 18: project airline reservation system

CAP414 : Database Administration

insert into AR_FLIGHT1 values(103 ,'Delta_air', 'london','India', 230);insert into AR_FLIGHT1 values(104 ,'indian_air', 'london','India', 230);

insert into AR_FLIGHT1 values(105 ,'Delta_air', 'london','India', 230);

insert into AR_FLIGHT1 values(106 ,'jet_air', 'london','India', 230);

select * from AR_FLIGHT1

CREATE TABLE AR_cutms(CUST_CD int primary key,

Page 19: project airline reservation system

CAP414 : Database Administration

NAME char(25), ADDRESS1 char(30),ADDRESS2 char(30),CITY char(25),PIN int,PH_MOBL_NO int,

);

insert into AR_cutms values(001,'vikas','abc','def','garh',144,27793);insert into AR_cutms values(002,'rana','aui','bsf','garh',134,1383);insert into AR_cutms values(003,'shahid','mnnd','hef','shimla',244,4755);insert into AR_cutms values(004,'rajesh','hjt','ad','nangal',321,3795);insert into AR_cutms values(005,'divya','wer','dtr','solan',564,2773);insert into AR_cutms values(006,'jeenat','mno','qwsf','nangal',844,7793);insert into AR_cutms values(007,'shavi','jkl','vjsd','shimla',214,12793);

Page 20: project airline reservation system

CAP414 : Database Administration

select * from AR_cutms

Page 21: project airline reservation system

CAP414 : Database Administration

Table for reservation

CREATE TABLE AR_RESERV_DET3 (CUST_CD int,FL_NO int,DEPT_PLA char(20),DES_PLA char(20),BOOK_DATE datetime,TRAVEL_DATE datetime,

foreign key (CUST_CD) references AR_cutms (CUST_CD) ,foreign key (FL_NO) references AR_FLIGHT1 (FL_NO));

Page 22: project airline reservation system

CAP414 : Database Administration

insert into AR_RESERV_DET3 values(001,101,'India','England',2010/10/10,2010/11/14);

insert into AR_RESERV_DET3 values(002,101,'India','Australia',2010/10/10,2010/11/14);

insert into AR_RESERV_DET3 values(003,101,'India','England',2010/10/10,2010/11/14);

insert into AR_RESERV_DET3 values(004,106,'london','India',2010/10/10,2010/11/14);

insert into AR_RESERV_DET3 values(005,103,'london','India',2010/10/10,2010/11/14);

insert into AR_RESERV_DET3 values(006,101,'India','England',2010/10/10,2010/11/14);

select * from AR_RESERV_DET3;

Page 23: project airline reservation system

CAP414 : Database Administration

FOR DELETAING CUST_ENTRY

delete from AR_RESERV_DET3 where CUST_CD=1;select * from AR_RESERV_DET3;

Page 24: project airline reservation system

CAP414 : Database Administration