Data Base of Railways Reservation System in India
Data Base of Railways Reservation System in India
OF
DBMS
Topic: Railway reservation
system for Indian railways.
SUBMITTED TO SUBMITTED BY
Manal Taneja Summit
Sakhre
E2803A10
10803929
ACKNOWLEDGEMENT
I Summit Sakhre feel great pleasure in submitting this project as the culmination of my guide’s
efforts. This project required hard work; sincerity and devotion that I tried my best to put in this
project and in turn gained a lot of knowledge from this project.
I am deeply grateful to my teacher who has helped me in completion of this project. She has been a
constant guiding force and source of illumination for me. I would like to thank her for her valuable advice
and guidance.
I am also thankful to my friends who helped me in this project. With their combine efforts I complete this
project.
At last but not least, I am thankful to the almighty god with whose grace I was always motivated and able
to complete the project and
Summit Sakhre
CONTENTS
S NO. TOPIC
1 INTRODUCTION
3 RELATIONAL MODEL
3.5 QUERIES
5 SORCE CODE
ABSTRACT
This term contains Introduction to the Railways reservation system .It is the computerized
system of reserving the seats of train seats in advanced . It is mainly used for long root . On-line
reservation has made the process for the reservation of seats very much easier than ever before.
In our country India, there are number of counters for the reservation of the seats and one can
easily make reservations and get tickets.
Then this term paper contain entity relationship model diagram based on rail reservation system
and introduction to relation model .There is also design of the database of the rail reservation
system based on relation model. Relation model has three relation RAIL_DETAILS ,
C_DETAILS and RESERVATION. Example of some SQL queries to retrieves data from rail
management database.
In the train reservation system for a state transport we should have all the details of cities,
villages etc to design the database of this system. For this system we have to design the database
which have all the information about trains their timing, origin, destination, Roots, Total no. of
seats in a particular train. Type of train and the full detail of the passenger for example passenger
id , passenger name, phone number, address, seats the passenger wants to reserve etc.
Represention of Train Reservation System for a state transportation with the help of Entity-
Relationship Diagram and Relational Model.
E-R Diagram :-
In this diagram CUSTOMER , TRAIN and RESERVATION are entities and the relationship
between them is reserves.
Passenger entity has seven attributes :- C_No, Ph_No , C_Name, Add, Age,Sex,State
which defines customer number, phone number, customer name,
address, age ,sex and State of customer.
Train entity has eight attributes :- Origin, Destination, T_seats, , T_type , T_no
,T_Timing mean departure time and arrival time of the train. Fair/perseat which defines origin of
train, destination of train, total no. of seats in a train, train type and train number,timing of
train,fair of reservation for per seat.
RELATIONAL MODEL:-
Then we insert values of all the attributes into this table using INSERT SQL query
Relation named train_Details is created which stores the information about train.
2) C-Details Table:
This table give the all the details of the passenger. in this table C_ID is the primary key so that
there is no duplicacy of the passenger .
Primary key
C_ID. C_Name Age Addr Ph_No Sex State
Reservation Table:-
This table give details about the reservation of train
Relation named RESERVATION is created which stores the information about reservation of
train
In this relation T_No act as a foreign key references from train_details.
Cancelation of TICKET or Reaervation:- If any passanger wants the cancelation of his tickets or
reservation then the deletion of this particular reservation record from database is done using
DELETE SQL query.