Professional Documents
Culture Documents
Session 2016-17
Description: This is a railway ticker, when any updation about train timings are found... it informs
all the client ticker's about the update and they roll the updates.one can also roll default timings..
RAILWAY RESERVATION SYSTEM should be able to manage all the reservation related
functions. The system should be distributed in nature. This system is divided into five zones.
NORTH ZONE
SOUTH ZONE
EAST ZONE
WEST ZONE
CENTRAL ZONE
Each zone should have same functionalities. Each zone will stores the information about train
name, train schedules, availability. The administrator should be able to enter any change related to
the train information like change in train name, number etc. The system should be able to reserve
seat in a train for a passenger. First the clerk will check for availability for the seats in a particular
train on a specified date of journey. If it is available the clerk will reserve seats. The passenger will
be given a unique PNR no. The system should be able to cancel a reservation. The clerk will delete
the entries in the system. The passenger can check their reservation status online by entering their
PNR no. The system will display his current status like confirmed, RAC or waiting list. They are
also able to see information related to the train schedules. The system should be able to print the
cancellation ticket which will have total fare and the amount deducted.
PURPOSE
The purpose of this source is to describe the railway reservation system which provides the train
timing details, reservation, billing and cancellation on various types of reservation namely,
ONLINE BOOKING: With the help of this people can book their tickets online through internet,
sitting in their home by a single click of mouse. Using their credit cards people can easily get their
tickets done within minutes. There are certain charges for online booking as well.
COUNTER BOOKING: This is the oldest method of booking the tickets. The reservation
counters are there at railway department from where people can get the tickets to their respective
destinations.
Railway passengers frequently need to know about their ticket reservation status, ticket availability
on a particular train or for a place, train arrival or departure details, special trains etc.. Customer
information centers at the railway stations are unable to serve such queries at peak periods. The
number of the reservation counters available to the passengers and customers are very less.
TABLES:-
1. Create a table for User and insert values in it?
Create a Table:
create table user1(
email_id varchar(30) primary key,
password varchar(20),
full_name char(30),
gender char(10),
age int,
city char(20),
state char(20),
mobile number(10));
Inserting Values:
insert into user1 values('shreyashruti2@gmail.com','shreya1','shreya
shruti','female',20,'patna','bihar',8725662455);
insert into user1 values('sakshijain061@gmail.com','cute77','sakshi
jain','female',20,'kota','rajasthan',7727893502);
insert into user1
values('232shruti@gmail.com','shruti23','shruti','female',20,'patna','bihar',7611952607
);
insert into user1 values('luhan143@gmail.com','luhu143','lu
han','male',25,'delhi','delhi',9782552738);
insert into user1 values('rj2325@ymail.com','rj5672','rocky
singh','male',25,'chandigarh','punjab',9999000066);
insert into user1 values('ashishjain@ymail.com','ash177','ashish
jain','male',20,'udaipur','rajasthan',9829468727);
insert into user1
values('chanyeol69@ymail.com','chan66','chanyeol','male',23,'mumbai','maharashtra',
8233076514);
insert into user1 values('s_bakshi@gmail.com','shalib','shalin
bakshi','male',20,'delhi','delhi',8947006957);
insert into user1 values('lavi45@gmail.com','1445lv','lavi
malhotra','female',22,'bangalore','karnataka',7736660231);
insert into user1 values('yuna0110@gmail.com','0110park','yuna
park','female',22,'vadodra','gujarat',9000189676);
4. select train_name, avail_days from train t right outer join route r on(t.train_id=r.train_id);
5. select count(*) from passenger;
13. select train_name, train_id from train where seat_avail between 1200 and 1500;