Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
45 views1 page

Database Airline Management System

The document provides SQL commands to set up an Airline Management System database named 'project4' in MySQL. It includes instructions to create several tables: cancellation, flight, login, passenger, payment, reservation, and sector, each with specified fields. This setup is essential for managing various aspects of airline operations such as bookings, payments, and passenger information.

Uploaded by

ZEESHAN KHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views1 page

Database Airline Management System

The document provides SQL commands to set up an Airline Management System database named 'project4' in MySQL. It includes instructions to create several tables: cancellation, flight, login, passenger, payment, reservation, and sector, each with specified fields. This setup is essential for managing various aspects of airline operations such as bookings, payments, and passenger information.

Uploaded by

ZEESHAN KHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Code for Interview

Airline Management System (Java Project)

Execute these queries one by one in your MySQL Console

1 - Create database with name project4

create database project4;

2 - Use the database you have just created

use project4;

3 - Create table with name cancellation

create table cancellation(pnr_no varchar(10), cancellation_no varchar(10),


cancellation_date varchar(20), fli_code varchar(15));

4 - create table with name flight

create table flight(f_code varchar(10), f_name varchar(20), src varchar(30), dst


varchar(30));

5 - create table with name login

create table login(username varchar(20), password varchar(20));

6 - create table with name passenger

create table passenger(pnr_no varchar(10), address varchar(30), nationality


varchar(15), name varchar(20), gender varchar(10), ph_no varchar(15), passport_no
varchar(20), fl_code varchar(10));

7 - create table with name payment

create table payment(pnr_no varchar(10), ph_no varchar(15), cheque_no varchar(15),


card_no varchar(20), paid_amt varchar(10), pay_date varchar(20));

8 - create table with name reservation

create table reservation(pnr_no varchar(10), ticket_id varchar(10), f_code


varchar(10), jny_date varchar(20), jny_time varchar(10), src varchar(20), dst
varchar(20));

9 - create table with name sector

create table sector(flight_code varchar(20), capacity varchar(10), class_code


varchar(5), class_name varchar(20));

You might also like