Airlines Reservation System

33
[ANIT THAPALIYA/1801T3100169] 2011 Table of Contents Acknowledgement:............................................2 Introduction:................................................ 3 Business Rules:.............................................. 5 Traveller:..................................................5 Address:....................................................5 Contact:....................................................5 Flight:.....................................................5 Schedule:...................................................6 Visa:.......................................................6 Ticket:.....................................................6 Payment:....................................................6 Travel_Agency:..............................................6 Entities for airline reservation database system are given below:......................................................7 The constraints, data type, attributes of the different table that involved in the airline reservation system are mention below along with the description:...........................8 Traveller:..................................................8 Address:....................................................9 Contact:.................................................... 10 Flight:....................................................10 Schedule:..................................................11 Visa:......................................................11 Tickets:...................................................12 Payment:...................................................12 Airline_Company:...........................................13 Following are the SQL statement to create entities and primary and foreign key:...................................14 CARDINALITES AMONG DIFFERENT ENTITES.......................19 1 | Airline Reservation Database System

description

Airlines Reservation System Database Design

Transcript of Airlines Reservation System

Page 1: Airlines Reservation System

[ ] 2011

Table of ContentsAcknowledgement:...............................................................................................................2

Introduction:.............................................................................................................................3

Business Rules:.........................................................................................................................5

Traveller:..............................................................................................................................5

Address:................................................................................................................................5

Contact:................................................................................................................................5

Flight:...................................................................................................................................5

Schedule:..............................................................................................................................6

Visa:.....................................................................................................................................6

Ticket:...................................................................................................................................6

Payment:...............................................................................................................................6

Travel_Agency:....................................................................................................................6

Entities for airline reservation database system are given below:.........................................7

The constraints, data type, attributes of the different table that involved in the airline reservation system are mention below along with the description:.......................................8

Traveller:..............................................................................................................................8

Address:................................................................................................................................9

Contact:..................................................................................................................................10

Flight:.................................................................................................................................10

Schedule:............................................................................................................................11

Visa:...................................................................................................................................11

Tickets:...............................................................................................................................12

Payment:.............................................................................................................................12

Airline_Company:..............................................................................................................13

Following are the SQL statement to create entities and primary and foreign key:..............14

CARDINALITES AMONG DIFFERENT ENTITES........................................................19

ER DIAGRAM (ENTITY RELATIONSHIP DIAGRAM)................................................21

References:.........................................................................................................................22

Turn it in Report:................................................................................................................23

1 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 2: Airlines Reservation System

[ ] 2011

Acknowledgement:Finally at the bottom line of this assignment, I would like to thanks Mr.Tashi

Wangdue for his outstanding support, encouragement, supervision and also the valuable suggestion from the preliminary to the concluding level enabled me to develop an understanding of the subject.

Meanwhile, at the same time I am indebted to many of my colleagues who support me for making this assignment a valuable one. Thank you all.

2 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 3: Airlines Reservation System

[ ] 2011

Introduction:We live in the world of uncertainty. Everything is changing. The rule and

regulations, governmental policies, business relations, trade law technological environment, social and cultural environments etc are changing in the continuous flow. From the viewpoint of technology, information is the most important weapon for financial institutions, economical sector, business organization etc to penetrate the market and beat the competition. In other word, many organizations, financial institutions, business sector all depend on their data/information for its regular activities. So, it must be kept safe and secure so that authorised personnel can only access it. A database with database management system is the backbone of an efficient information system. Initially the first computer focused on the clerical tasks (Leon, 1999) so that the file based management was popular but modern database approach is popular because of the growing programming skills and complex computer. Nowadays, different database management system is used by different organization depending on their nature.

Airline reservation database system is the database management system for the airline company and its different remote agencies. It performs different task such as recording the traveller details, time schedules of the flight, total no of the seats, total no of the reserved seats, payment etc (Ray, 2009). As a result, Airline reservation system helps the user to retrieve the information from the database and update it freely without any trouble. Likewise the main aims of this task is to designed the airline reservation database system with the different function like storage management, language interface, security management, recovery management, concurrency control and transaction management etc.

When a traveller came to the outlets of Airline Company for the air tickets, he first provides his full personal details. Those details were written in a customer form with the date that the traveller wants. Then the computer checks the date and the flight. The computers generate the unique ID (Seller, 2007) if the date has specific flight. Again, the travellers have to provide their seat details like window side in economy class, business class etc. Meanwhile, if the seat is empty then the system reserved that seat. Finally the tickets is confirmed and generated after the payment. However if the condition can apply traveller are free to cancel the flight.

These are the main business activities under airline reservation database system :

This software application handle the transaction that takes place during air ticketing such as blocking, reserving, rescheduling and also cancelling.

The airline reservation system application helps Airline Company to maintain the efficient scheduling of different flights, routes etc.

3 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 4: Airlines Reservation System

[ ] 2011

This system provide the different information to the traveller like flight no, flight time, route, transit time, price etc.

It maintains the consistency among the different remote ticket counter. It also supports the different access mode for the traveller such as by

telephone, by web etc. It provides the information about the special offer and discount given to the

passenger by the company. It also provides the information about the available seat in each class such as

economy as well as business class. It helps to decrease search effort of the passenger while checking their ticket

status such as flight delay, terminal, transit etc. It also helps to maintain the privacy of the passenger details.

4 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 5: Airlines Reservation System

[ ] 2011

Business Rules:

The business rules for the different airline reservation database system are given below:

Traveller: Traveller can choose any access mode for air ticketing such as by phone, by

web etc. They are requested to provide their full name as well as middle name if

necessary. They are also requested to provide their current photograph for security. Travellers are free to choose the tickets of any class. They are requested to provide their home as well as office telephone number. Valid phone number must be provided. Traveller can block the tickets easily without any disturbance. They are strongly requested to provide a copy their citizenship certificate or

passport.

Address: Traveller country name must be mentioned. Permanent address should be given along with the temporary one if necessary. Traveller should mention their district, zone, city as well as state if available. Traveller must provide their destination address otherwise tickets is not

allowed for them. Address is one of the sensitive factor securities so fake address is strictly

prohibited.

Contact: Contact information of the traveller must be mentioned. Valid telephone number must be provided with correct area code.

Flight: Flight name and number must be mentioned. Flight destination is also listed with different transit location. Flight time schedule may be change due to technical error, climatic condition

etc. Travellers are free to choose the seat of their respective classes. Flight schedule can be altering as per the traveller benefits. Rescheduling of the flight may apply under certain conditions. Food and drinks are provided in the international flight. Drugs, arms and weapons are strictly prohibited.

5 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 6: Airlines Reservation System

[ ] 2011

Schedule: Time of arrivals and time of departure may vary due technical error as well as

climatic condition. Flight duration may also vary because of the different transit at different

place/country.

Visa: Traveller must obtain the authenticated visa from the country where she/he is

planning to visit. Types of visa should be mentioned clearly such as student’s visa, tourist visa,

diplomatic visa etc. The passport containing the visa must be valid. The visa duration must be listed properly. For tourist visa travel cheque is supposed to take. Traveller passport may also contain the visa for different countries. Visa is also necessary for the child below 1 year.

Ticket: Traveller can block tickets for some time by paying extra amount. Tickets can be reserved by phone or web. Confirmation code is needed while issuing ticket in case of phone or web

booking. Payment is necessary before issuing the ticket and it may include the different

taxes. It may include the special offer and discount provided to passenger. Passport number must be included in the tickets. Tickets might be necessary for children below one year. Extra amount is charged in case of rescheduling and cancelling of the tickets. Each ticket contains the certain policy of the insurance of the traveller.

Payment: Payment can be made though cash or card. Bank cheque is not accepted. Advanced payment is necessary in case of early booking or blocking. Payment includes the government tax, commission rate, airport tax etc as per

the current rules and regulations. Local currency is not accepted it should be in dollar.

Travel_Agency: There may be the multiple agencies of the same airline company. Blocking, reserving, rescheduling and cancelling can also be done through

travel agency. Extra amount provided to the travel agency for each ticket from the airline

company.

6 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 7: Airlines Reservation System

[ ] 2011

Entities for airline reservation database system are given below:

Serial No. Name of the tables

1 Traveller

2 Address

3 Contact

4 Flight

5 Schedule

6 Visa

7 Tickets

8 Payment

9 Airline_Company

7 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 8: Airlines Reservation System

[ ] 2011

The constraints, data type, attributes of the different table that involved in the airline reservation system are mention below along with the description:

Traveller:S.N Attributes Data Type Description Constraints1 Traveller_ID INT It is a unique

value that cannot be use in multiple times.

Primary Key

2 F_Name Varchar2(25) It describes the first name of the traveller.

Not Null

3 L_Name Varchar2(25) It describes the last name of the traveller.

Not Null

4 M_Name Varchar2(25) It describes the middle name of the traveller.

5 Gender Char(1) Sex of the traveller is described here such as M-male & F-female.

Check

6 Nationality Varchar2(25) Origin country of the traveller is listed here.

7 Date_of_Birth Date Traveller date of birth is mention in this attributes with specific format.

8 Passport_No Number It is the unique identification of the traveller.

UNIQUE

9 Citizenship_No Number It is the unique identification of the traveller.

UNIQUE

8 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 9: Airlines Reservation System

[ ] 2011

Address:

S.N Attributes Data Type Description Constraints1 Address_ID Number It is for

identifying the traveller and it cannot be duplicated.

Primary Key

2 Permanent_Address Varchar2(50) It describes the original address of the traveller.

Not Null

3 Temporary_Addess Varchar2(50) It describes the current address of the traveller.

Not Null

4 Country Varchar2(25) Country of the traveller.

5 Zone Varchar2(25) Zone of the traveller is mention here in this attribute.

6 District Varchar2(25) It describes the district of the traveller.

7 State Varchar2(25) It describes the traveller’s state and is optional for Nepal.

8 Municipality Varchar2(25) It describes the municipality of the traveller.

9 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 10: Airlines Reservation System

[ ] 2011

Contact:S.N Attributes Data Type Description Constraints1 Contact_ID Number It is for

identifying the traveller and it cannot be duplicated.

Primary Key

2 Home_No Number It is not greater than 7 digits

Not Null

3 Email Varchar2(25) It is the mailing address of the traveller such as [email protected]

Check

4 Office No Number It is not greater than 7 digits.

Not Null

5 Mobile No Number It must be 10 digits

Check

Flight:S.N Attributes Data Type Description Constraints1 Flight_ID Number Unique

identification of the flight that never mismatched.

Primary Key

2 Airlines Varchar2(25) Name of the airlines such as Yeti, QATAR etc.

Not Null

3 Category Varchar2(25) Types of flight such as domestic or international.

4 Name_departure Varchar2(25) Initial city of the flight.

Not Null

5 Name_destination Varchar2(25) Final destination of the flight.

Not Null

6 No_of_Seat Number Total no of seat available in each class on the flight.

Not Null

10 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 11: Airlines Reservation System

[ ] 2011

Schedule:S.N Attributes Data Type Description Constraints1 Schedule_ID INT Unique value

which cannot be duplicated.

Primary Key

2 Time_Departure Time It is the time of flight that departure & it should be in HH:MM:SS format.

Not Null

3 Time_Arrivals Time It is the time of flight that arrivals & it should be in HH:MM:SS format.

Not Null

4 Duration Varchar2(25) It describes the total time taken during the flight

Not Null

Visa:S.N Attributes Data Type Description Constraints1 Visa_ID INT Unique

identification of the traveller that never match with other.

Primary Key

2 Type char(5) It describes the classification of visa such as students, tourist, diplomatic visa etc.

3 Duration_Visa Varchar2(25) It is the time period of the visa between the issue and expiry date.

Not Null

4 Issue_Date Date It must be in the standard format of YYYY/MM/DD

Not Null

5 Expiry_Date Date It should be in the standard format.

Not Null

6 Country Varchar2(25) It provides the country list where travellers have permission.

Not Null

11 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 12: Airlines Reservation System

[ ] 2011

Tickets:S.N Attributes Data Type Description Constraints1 Tickets_ID INT It is the unique

identification of the tickets from other.

Primary Key

2 Class Varchar2(25) It verify the specific class of the flight such as economic, business, royal etc.

Not Null

3 Type char2(5) It describes type of the tickets such as one way, return etc.

4 Category Varchar2(25) It verify the flight between domestic and international.

5 Baggage Varchar2(25) Baggage weight for the flight is limited such as 35kg minimum. Extra amount is charged for more.

Payment:

S.N Attributes Data Type Description Constraints1 Payment_ID INT It is the unique

identification of the payment made.

Primary Key

2 Total_Amount Number Total amount to be paid by the traveller.

Not Null

3 Discount Number Discounted amount for the traveller.

4 Commission Number Certain amount provided to the airline company’s remote travel agency.

12 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 13: Airlines Reservation System

[ ] 2011

Airline_Company:

S.N Attributes Data Type Description Constraints1 AC_ID INT It is unique

and does not match with other.

Primary Key

2 Name_Company Varchar2(25) It defines the name of the company.

Not Null

3 Address Varchar2(25) It is the address of airline company

Not Null

4 Total_no_of_aircraft Number The total no of aircraft of the company

5 Branch_office Varchar2(25) Name of the different branch of the company

13 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 14: Airlines Reservation System

[ ] 2011

Following are the SQL statement to create entities and primary and foreign key:

CREATE TABLE Traveller (

Traveller_ID INT,

F_Name VARCHAR2 (25) NOT NULL,

L_Name VARCHAR2 (25) NOT NULL,

M_Name VARCHAR 2(25),

Gender CHAR (1),

Date_Of_Birth DATE,

Nationality VARCHAR2 (25),

Passport_No NUMBER UNIQUE,

Citizenship_No UNIQUE,

CONSTRAINT Traveller_Traveller_ID_pk PRIMARY KEY (Traveller_ID),

CONSTRAINT Traveller_Gender_c CHECK (Gender IN (‘M’, ‘F’)),

CONSTRAINT Traveller_Passport_No_uUNIQUE(Passport_N),

CONSTRAINT Traveller_Citizenship_No_uUNIQUE(Citizenship_No)

);

14 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 15: Airlines Reservation System

[ ] 2011

CREATE TABLE Address (

Address_ID NUMBER PRIMARY KEY,

Permanent_Address VARCHAR2(25) NOT NULL,

Temporary_Address VARCHAR2(25) NOT NULL,

Country VARCHAR2(25),

Zone VARCHAR2(25),

District VARCHAR2(25),

State VARCHAR2(25),

Municipality VARCHAR2(25),

Traveller_ID INT,

CONSTRAINT Address_Traveller_ID_fk FOREIGN KEY (Traveller_ID)

REFERENCES Traveller (Traveller_ID)

);

CREATE TABLE Contact

(

Contact_ID NUMBER CONSTRAINT Contact_Contact_ID_pk PRIMARY KEY,

Home_No NOT NULL,

Email VARCHAR2(25) CHECK (Email LIKE ‘%@%’),

Office_No NOT NULL,

Mobile_No NOT NULL,

Traveller_ID INT,

CONSTRAINT Contact_Traveller_ID_fkFOREIGN KEY (Traveller_ID)

REFERENCES Traveller (Traveller_ID)

);

15 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 16: Airlines Reservation System

[ ] 2011

CREATE TABLE Flight

(

Flight_ID NUMBERPRIMARY KEY,

Airline VARCHAR2(25) NOT NULL,

Category VARCHAR2(25) CHECK (Category IN(‘D’,’I’)),

Name_departure VARCHAR2(25) NOT NULL,

Name_destination VARCHAR2(25) NOT NULL,

No_of _the_ seat NUMBER NOT NULL,

Ailine_Company_ID INT,

CONSTRAINT Flight_Airline_Company_ID_fk FOREIGN KEY

(Airline_Company _ID) REFERENCES Airline_Company(Airline_Company

_ID)

);

CREATE TABLE Schedule (

Schedule_ID NUMBER CONSTRAINT Schedule_Schtimedule_ID_pk PRIMARY KEY,

Time_Departure DATE NOT NULL,

Time_Arrivals DATE NOT NULL,

Duration VARCHAR2 NOT NULL,

Flight_ID NUMBER,

Ailine_Company_ID INT,

CONSTRAINT Schedule_Flight_ID_fk FOREIGN KEY(Flight_ID) REFERENCES

Flight(Flight_ID),

CONSTRAINT Schedule_Airline_Company_ID_fk FOREIGN KEY

(Airline_Company _ID) REFERENCES Airline_Company(Airline_Company _ID)

);

16 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 17: Airlines Reservation System

[ ] 2011

CREATE TABLE Visa (

Visa_ID NUMBER CONSTRAINT Visa_Visa_ID_pk PRIMARY KEY,

Type CHAR(5),

Duration_Visa VARCHAR2(25),

Issue_Date DATE NOT NULL,

Expirary_Date DATE NOT NULL,

Country VARCHAR2(25),

Traveller_ID INT,

FOREIGN KEY (Traveller_ID) REFERENCES Traveller (Traveller_ID)

);

CREATE TABLE Tickets (

Ticket_ID INT CONSTRAINT Tickets_Ticket_ID_pk PRIMARY KEY,

Class VARCHAR2(25) NOT NULL,

Type CHAR(5),

Status VARCHAR2(25),

Baggage VARCHAR2(25),

Flight_ID NUMBER,

Traveller_ID INT,

FOREIGN KEY(Flight_ID) REFERENCES Flight(Flight_ID),

FOREIGN KEY (Traveller_ID) REFERENCES Traveller (Traveller_ID)

);

17 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 18: Airlines Reservation System

[ ] 2011

CREATE TABLE Payment (

Payment_ID INT,

Total_Amount NUMBER NOT NULL,

Discount NUMBER,

Commission NUMBER,

Ticket_ID NUMBER,

CONSTRAINT Payment_Payment_ID_pk PRIMARY KEY(Payment_ID),

CONSTRAINT Schedule_Ticket_ID_fk FOREIGN KEY(Ticket_ID) REFERENCES

Tickets(Ticket_ID)

);

CREATE TABLE Airline_Company

(

Airline_Company_ID INT PRIMARY KEY,

Name_Company VARCHAR2(25),

Address VARCHAR2(25),

Total_No_of_Aircraft NUMBER

);

18 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 19: Airlines Reservation System

[ ] 2011

CARDINALITES AMONG DIFFERENT ENTITES

19 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Traveller Can hav

Address

Traveller Can hav

Contact

Traveller Can hav

Visa

Traveller Can hav

Tickets

Flight

Flight Can hav

Schedule

Airline_Company

Page 20: Airlines Reservation System

[ ] 2011

20 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Tickets Can hav

Payment

Page 21: Airlines Reservation System

[ ] 2011

ER DIAGRAM (ENTITY RELATIONSHIP DIAGRAM)

21 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 22: Airlines Reservation System

[ ] 2011

References: Alexis Leon & Mathews Leon, 1999, Fundamentals of Information

Technology, Second Edition.

Max Printing Press Chhennai-600 095

Chhanda Ray,2009,Distributed Database System, [eBook]Publisher: Dorling Kindersley(India)Pvt. Ltd. Available at:

http://books.google.com/books?id=0i9uJJ78LtAC&lpg=PA288&dq=airline%20reservation%20database%20system&pg=PA288#v=onepage&q&f=false

[Accessed 3rd November 11:10am]

Sam Seller, 2007, Take Control of Booking a Cheap Airline Ticket, [eBook]Publisher: TidBITS Electronic Publishing. Available at:http://books.google.com/books?id=9gyvGBVtrvgC&lpg=PA10&dq=airline%20reservation%20process&pg=PA17#v=onepage&q=airline%20reservation%20process&f=false

[Accessed 3rd November 11:10am]

22 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m

Page 23: Airlines Reservation System

[ ] 2011

Turn it in Report:

Turnitin Originality Report Airline Reservation System by Anit Thapaliya From Airlines Reservation System (CDB101_T3_2011)

Processed on 07-Nov-2011 11:08 AM PST ID: 213099606 Word Count: 2436

 Similarity Index12%Similarity by SourceInternet Sources:

1% Publications:

0% Student Papers:

12%

23 | A i r l i n e R e s e r v a t i o n D a t a b a s e S y s t e m