Professional Documents
Culture Documents
ENTITIES ATTRIBUTES
User ID
First_Name
Middle_Name
Last _Name
Age
Gender
City
Pin_code
State
Mobile_no.
Train Train_No
Name
Capacity
Destination
Train_Desc
Arrival_Time
Station Station_No
Arrival_Time
Hault
Departure
Name
Train_No
Ticket Ticket_id
No. Of Passenger
First_Name
Ticket_Price
PNR_No
Train_No
ID
Ticket Status Ticket_id
Confirmed
RAC
Waiting
ID
Payment ID
Ticket_Id
Paid_Amt
Pay_Date
Pay_Desc
ABSTRACT
This Project is about creating the database about Railway
Reservation System
Users can book their tickets for the train in which seats are available.
For this, user has to provide the desired train number and the date
for which ticket is to be booked. Before booking a ticket for a user,
the validity of train number is checked. Once the train number and
time are validated, it is checked whether the seat is available. If yes,
the ticket is booked with confirm status and corresponding ticket ID
is generated which is stored along with other details of the user. The
ticket once booked can be canceled at any time. For this, the
passenger has to provide the ticket ID (the unique Key).User can do
the payment by different modes(UPI,Cash,Card).
ER DIAGRAM
DATA MODEL OF RAILWAY MANAGEMENT SYSTEM
Create table User( ID number(20) primary key,
First_Name varchar2(20) ,
Middle_name varchar2(20), Last_name varchar2(20),
Gender varchar2(20),
Age number,
Mobile_No. varchar2(20),
City varchar2(20), State varchar2(20),
Pin_Code varchar2(20)(20);
Create table Travels _In ( ID number(20) foreign key, Train_No. number(20) foreign
key, Constranumber(20) foreign key(ID) references User(ID), Constranumber(20)
foreign key(Train_No.) references Train(Train_No.) );