SlideShare a Scribd company logo
1 of 26
ASIA PACIFIC INSTITUTE OF
INFORMATION TECHNOLOGY
DATABASE AND WEB DATABASE SYSTEMS
Module Code: CE00318-2
INDIVIDUAL PROJECT
Submitted By: Submitted To:
Prince Kumar Ms. Sulekh Sharma
PT1082219 Level-2 (Module Lecturer)
COMPUTING
CERTIFICATE
This is to certify that Prince Kumar of 6th Semester student (Computing Branch) of APIIT SD
INDIA have successfully completed her individual assignment of DWDS module on ‘Online
Railway Reservation System’ with the complete guidance of Ms. Sulekh Sharma.
Prince Kumar (PT1082219) Ms. Sulekh Sharma
Level-2 (Module Lecturer)
COM
ACKNOWLEDGEMENT
Around a period of two months I was working hard to achieve my goal. I have strived hard to
complete my assignment. My goal was to give an exceptional and appreciating performance.
Though there were lots of problems I had faced but I moved on and on.
Firstly, I would like to thank APIIT SD INDIA to provide me the opportunity to do
such an assignment. I am very much thankful to my Module Lecturer Ms. Sulekh Sharma. For
her uninterrupted support in the development of the assignment and have enabled me to complete
my assignment on the given period of time. She was always there to listen and to give advice and
she also taught me how to express my ideas and views professionally. I greatly acknowledge the
effective contribution of Director R.K Choudhary, who encouraged me and provided me with all
kinds of conveniences including Ultra modern Library and Computer Lab. I would also like to
thank all our friends, family and everybody else who helped me anyways in our assignment.
Last but not the least; I want to acknowledge all my friends and colleagues who supported me in
my assignment.
Prince Kumar
Level 2
Computing
Table of Contents
CERTIFICATE..................................................................................................................................................2
ACKNOWLEDGEMENT...................................................................................................................................3
1.0. Introducing Online Railway Reservation System.............................................................................5
2.0. Abstract.............................................................................................................................................5
3.0. Problem Background ........................................................................................................................6
4.0. Proposed Solution.............................................................................................................................6
5.0. Programming Environment...............................................................................................................7
6.0 Entity Relationship Diagram...................................................................................................................8
7.0 Mapping of ERD to Relational Model......................................................................................................9
8.0 Initial Schema........................................................................................... Error! Bookmark not defined.
9.0 Normalization........................................................................................................................................10
10.0 Database Design..................................................................................................................................12
11.0 Table Design.......................................................................................................................................13
12.0 Toolbar................................................................................................................................................16
13.0 Form Design........................................................................................................................................17
14.0 Report..................................................................................................................................................21
15.0 DDL Queries AND Constraints ..........................................................................................................22
16.0 DML Queries ......................................................................................................................................24
17.0 Conclusion ..........................................................................................................................................26
18.0 References.............................................................................................. Error! Bookmark not defined.
1.0. Introducing Online Railway Reservation System
Technology has transformed many aspects of life in the 21st century, including the way many of
us make train reservations. For example, to make ticketing more convenient for travelers, Indian
Railways* has started an online reservation system, which helps us in booking tickets from the
comfort of our homes or offices. While this is convenient for most people, it has made things
particularly easier for people residing in remote locations.
The system is basically concerned with the reservation and cancellation of railways tickets of the
passenger. The need of this system arose because as is the known fact that India has the largest
railway network in the whole of the world and to handle it manually is quite a tough job. By
computerizing it, we will be able to
overcome many of its limitations
and will be able to make it more
efficient. The handling of data and
records for such a vast system is a
very complex task if done manually
but it can be made easier if the
system is computerized.
This System is basically concerned
with the reservation and cancellation
of railways tickets of the passenger. The need of this system arose because as is the known fact
that India has the largest railway network in the whole of the world and to handle it manually is
quite a tough job. By computerizing it, we will be able to overcome many of its limitations and
will be able to make it more efficient. The handling of data and records for such a vast system is
a very complex task if done manually but it can be made easier if the system is computerized.
The Customers are required to register on the server for getting Access to the database and query
result retrieval. Upon registration, each user has an account which is essentially the ‘view level’
for the customer. The account contains comprehensive information of the user entered during
registration and permits the customer to get access to his past reservations, enquire about travel
fare and availability of seats, make afresh reservations, update his account details, etc.
2.0. Abstract
Railway Reservation System is a complex online distributed transaction application based
on client server architecture. The salient features of the software include allowing user from
anywhere to do a booking for a journey in any train in any class from anywhere to anywhere;
handling reservation, modifications cancellation/refunds.
This project is all about the railway reservation online i.e., Software includes allowing
user from anywhere to do a booking for a journey in any train in any class from anywhere to
anywhere; handling reservation, modifications cancellation/refunds.
3.0. Problem Background
In the existing system Reservation is done manually by a user at railway reservation
counters. User has to wait for a long time in the queue to get the reservation. Like this wasting
the time of user and for this lot of man power is required. and lot of paper work is also required.
4.0. Proposed Solution
To avoid all the above pitfalls the system proposed is “Railway Reservation System”. In this all
the reservation process through online. This system saves money, manpower, time. It provides
security compared to existing system.
The basic functions being performed by our system are status, reservation and cancellation.
These functions will be handles with the help of following sub functions:-
 It reserves and cancels seats of passenger.
 It contains Information about the stations.
 It contains information about the trains.
 It contains information about the passenger.
 It contains the details of reservations fare.
 It makes entries for reservation, waiting, cancelled tickets.
 It will update for uptime and downtime trains.
 The passenger could search for trains from a particular source to destination.
 The record of train status includes dates for which tickets can be booked, total number of
seats available, number of seats already booked and waiting slot
How does it work?
Railway Reservation system is to eliminate heavy load paper work by converting it into web
based computer process. This web-based application is completely client - server oriented for
processing
5.0. Programming Environment
Visual Studio .NET2008
Visual Studio .Net is the rapid application development tool for BASIC. Visual Studio .Net
offers complete integration with ASP.NET and enables to drag and drop server controls and
design Web Forms as they should appear when user views them.
ASP.NET programming languages
ASP.NET has been designed to work seamlessly with WYSIWYG HTML editors and other programming
tools, including Microsoft Visual Studio .NET. Not only does this make Web development easier, but it
also provides all the benefits that these tools have to offer, including a GUI that developers can use to
drop server controls onto a Web page and fully integrated debugging support. Developers can choose
from the following two features when creating an ASP.NET application, Web Forms and Web services,
or combine these in any way they see fit.
SQL Server 2008
A database system must provide the following features:
 A variety of user interfaces
 Physical & Logical data independence
 Query optimization
 Data integrity
 Concurrency control
 Backup and recovery
 Security and authorization
SQL Server is a Relational Database Management System. The SQL Server relational language
is called Transact-SQL.SQL is asset-oriented language. This means that SQL can query many
rows from one or more tables using just one statement. This feature allows the use of this
language at a logically higher level than procedural languages. Another important property of
SQL is its non- procedurally. SQL contains two sub languages DDL and DML.
6.0 Entity Relationship Diagram
Train
Status
Passenger
user
Route
Station
Start
Has
Book
Has
Has Book
Route
Status
End
S_id S_name
Seat_no
Booking_d
ate
Availibilit
y
Stop_no
Booking
Date
T_no
U_id
U_name
password
P_name
P_age
P_gender
T_no
T_name
T_type
T_Class
1
M
1
M
1
M
1
M
List of entity type:
S No. Entity Type Attributes
1. Passenger ticket-id,
pssngr_name,pssngr_age,pssngr_sex,pssngr_seatno,train_id
2. Train Train_no, Train_name, source_id, destination_id, days, no of
seats
3. Train Status No. of seat available, No. of booked seat , Waiting seat,
Booking date.
4. Route Tr_no, St_id, stop_no. , arr_time, dep_time, dis.
5. Station Station_id,Station_ name
6. User User_id,user_name,usr_age,user_email,user_password,user_phn
7.0 Mapping of ERD to Relational Model
8.0 Normalization
User_registration
User_id User_name User_address User_password User_Email User_Phone
Station
Station_id Station_name
TRAIN_info
Train_no, train_name train_typ Soucre_name Destination_name
Trninfo_days
Train_no Sun Mon Tue Wed Thu Fri Sat
route
Train_no Stop_no Arrival_time, Deptaure_time, Distance Station_id,
Station_route
Station_id Stop_no Train_no
Train_status
Train_no journey_date booked_date total_seats, A1 A2 SL W1 W2 W3
Passerger
Ticket_id Passngr_name Passngr_age Passngr_gender Passngr_seatno Train_id
Passenger_info
Train_id Ticket_id Source_id Destination_id Class_type Resrvtion_type
Booking
Train_no Ticket_id User_id Booking_steats Available_date Date_sts
Trninfo_AC1
Train_id Trainstatus_AC1 Trainnfr_AC1
Trninfo_AC2
Train_id Trainsts_AC2 Trainfr_AC2
Trninfo_SL
Train_id Trainsts_SL Trnfr_SL
TRAIN_info
Train_no, train_name train_type Source_name Destination_name
9.0 Database Design
passenger
ticket_id
pssngr_name
pssngr_age
pssngr_sex
pssngr_seatno
train_id
passenger_status
ticket_id
source_sid
dest_sid
ticket_class
pssngr_ticketstatus
train_id
route
train_no
stop_no
arival_time
deprt_time
dist
station
station_id
station_name
station_route
station_id
train_no
stop_no
ticket_resrv
user_id
ticket_id
train_no
date_avialable
date_status
train
train_no
train_name
source_sid
dest_sid
train_type
train_Ac1
train_no
Ac1_fare
Ac1_seat
train_Ac2
train_no
Ac2_fare
Ac2_seat
train_rdays
train_no
sun
mon
tues
wed
thurs
fri
sat
train_sl
train_no
Sl_fare
Sl_seat
trainAC1_status
train_no
date_available
AC1_reserveseats
AC1_waitingseats
AC1_availableseats
trainAC2_status
train_no
date_available
AC2_reserveseats
AC2_waitingseats
AC2_availableseats
trainSL_status
train_no
date_available
sl_reserveseats
sl_waitingseats
sl_availableseats
user_registration
user_id
user_name
user_password
user_email
user_address
user_phone
10.0 Table Design
Passenger
Passenger Status
The passenger status consisting of
six columns: ticket_id, source_sid,
dest_sid, ticket_class,
pssngr_ticketstatus, train_id
Route
Station Route
Station
Ticket Reservation
Route consisting of five columns
Train_no, stop_no, arrival_time (i.e. arrival time
of train), deprt_time (departure time of
train),dist(distance covered by train)
The station route It Consists of station_id ,
train_no , stop_no
Station has two column Station_id , station_name
Ticket Reservation consist of User_id , ticket_id
, train_no , Available_ date , date_status
Train
User Registration
Train consists of Train_no, Train_name, Source_sid,
dest_sid , train_type
Registration form of user consists of user_id, user_name,
user_password, user_email, user_address and user_phone.
11.0 Toolbar
(For Logout) – From this user can go back to login page. If user terminates session
then user can easily get on “Login Form”.
(Booking) – For Reservation of ticket. User can book ticket by giving some
Details.
(Train between Stations)- To find no of running train with source id and destination
id.
Contact Us – For Further info about Admin or website handlers or organization
Add Train
Add Route – For adding Route
12.0 Form Design
Fig: Login Form
Fig: Home page Admin
Fig: Add Route
Fig: Add Station
Fig: Add Train
Fig: Welcome page of User
Fig: Registration Form
Fig: Train between Stations
13.0 Report
Fig : Users Report
Fig : Show Station
14.0 DDL Queries AND Constraints
 Creation of Database
CREATE DATABASE, railway;
 Creation Of Table
Ticket Reservation
CREATE TABLE [dbo].[ticket_resrv](
[user_id] [int] NOT NULL,
[ticket_id] [int] NOT NULL,
[train_no] [int] NOT NULL,
[date_avialable] [varchar](50) NOT NULL,
[date_status] [varchar](50) NOT NULL
) ON [PRIMARY]
Train
CREATE TABLE [dbo].[train](
[train_no] [int] NOT NULL,
[train_name] [varchar](50) NOT NULL,
[source_sid] [varchar](50) NOT NULL,
[dest_sid] [varchar](50) NOT NULL,
[train_type] [varchar](20) NOT NULL,
CONSTRAINT [PK_train] PRIMARY KEY CLUSTERED
(
[train_no] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Train Running Days
CREATE TABLE [dbo].[train_rdays](
[train_no] [int] NOT NULL,
[sun] [varchar](50) NOT NULL,
[mon] [varchar](50) NOT NULL,
[tues] [varchar](50) NOT NULL,
[wed] [varchar](50) NOT NULL,
[thurs] [varchar](50) NOT NULL,
[fri] [varchar](50) NOT NULL,
[sat] [varchar](50) NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[train_rdays] WITH CHECK ADD CONSTRAINT
[FK_train_rdays_train] FOREIGN KEY([train_no])
REFERENCES [dbo].[train] ([train_no])
Passenger
CREATE TABLE [dbo].[passenger](
[ticket_id] [int] NOT NULL,
[pssngr_name] [varchar](50) NOT NULL,
[pssngr_age] [ntext] NOT NULL,
[pssngr_sex] [varchar](50) NOT NULL,
[pssngr_seatno] [int] NOT NULL,
[train_id] [int] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
Train AC2_Status
CREATE TABLE [dbo].[trainAC2_status](
[train_no] [int] NOT NULL,
[date_available] [varchar](50) NOT NULL,
[AC2_reserveseats] [int] NOT NULL,
[AC2_waitingseats] [int] NOT NULL,
[AC2_availableseats] [int] NOT NULL,
CONSTRAINT [PK_trainAC2_status] PRIMARY KEY CLUSTERED
(
[train_no] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
User Registration
CREATE TABLE [dbo].[user_registration](
[user_id] [int] NOT NULL,
[user_name] [varchar](50) NOT NULL,
[user_password] [varchar](50) NOT NULL,
[user_email] [varchar](50) NOT NULL,
[user_address] [varchar](50) NOT NULL,
[user_phone] [int] NOT NULL,
CONSTRAINT [PK_user_registration] PRIMARY KEY CLUSTERED
(
[user_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
15.0 DML Queries
Add Station
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Partial Public Class Add_station
Inherits System.Web.UI.Page
Dim rail As String =
ConfigurationManager.ConnectionStrings("database").ConnectionString
Dim con As New SqlConnection(rail)
Public Sub Details()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
bindata()
End If
End Sub
Public Sub bindata()
con.Open()
Dim cmd As New SqlCommand("select * from station", con)
Dim dr As SqlDataReader = cmd.ExecuteReader()
Grid_Station.DataSource = dr
Grid_Station.DataBind()
dr.Close()
con.Close()
End Sub
Protected Sub btn_Submit_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles btn_Submit.Click
Try
con.Open()
Dim cmd As New SqlCommand("insert into station values ('" &
TxtStnt_Id.Text & "','" & TxtStnt_Name.Text & "')", con)
cmd.ExecuteNonQuery()
con.Close()
MsgBox("Successfully Inserted", MsgBoxStyle.OkCancel)
bindata()
TxtStnt_Id.Text = " "
TxtStnt_Name.Text = " "
Catch ex As SqlException
MsgBox(ex.Message)
End Try
End Sub
Private Sub Grid_Station_RowEditing(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewEditEventArgs) Handles
Grid_Station.RowEditing
Grid_Station.EditIndex = e.NewEditIndex
bindata()
End Sub
Private Sub Grid_Station_RowUpdating(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles
Grid_Station.RowUpdating
Dim row As GridViewRow = Grid_Station.Rows(e.RowIndex)
Dim station_id As String = CInt(CType(row.Cells(0).Controls(0),
TextBox).Text)
Dim station_name As String = CType(row.Cells(1).Controls(0),
TextBox).Text
con.Open()
Dim sql As String = ("update station set station_name='" &
station_name & "' where station_id='" & station_id & "'")
Dim cmd As New SqlCommand(sql, con)
cmd.ExecuteNonQuery()
con.Close()
Grid_Station.EditIndex = -1
bindata()
MsgBox("Details has been sucessfully updated !!!)")
End Sub
Protected Sub Grid_Station_SelectedIndexChanged(ByVal sender As Object,
ByVal e As EventArgs) Handles Grid_Station.SelectedIndexChanged
End Sub
Protected Sub TxtStnt_Id_TextChanged(ByVal sender As Object, ByVal e As
EventArgs) Handles TxtStnt_Id.TextChanged
End sub
End Class
16.0 Conclusion
The main aim of developing Reservation system is to provide all information that is required by
the users. User friendliness is a must that is the user must get the details without complicated searching
procedures. Other important requirements of software are data security, extensibility and maintainability.
All these features are included in this web application.
The project greatly helped in understanding the various phases in website development and
exposure to a new developer platform MS Visual Studio .Net and database MS SQL Server.

More Related Content

What's hot

Railway Reservation System - Software Engineering
Railway Reservation System - Software EngineeringRailway Reservation System - Software Engineering
Railway Reservation System - Software EngineeringLalit Pal
 
Online Bus Reservation
Online Bus ReservationOnline Bus Reservation
Online Bus ReservationAstha Patel
 
Online Bus Ticket Reservation System
Online Bus Ticket Reservation SystemOnline Bus Ticket Reservation System
Online Bus Ticket Reservation SystemTuvshinbayar Davaa
 
TRAIN TICKETING SYSTEM
TRAIN TICKETING SYSTEMTRAIN TICKETING SYSTEM
TRAIN TICKETING SYSTEMNimRaH NaZaR
 
railway reservation software documentaion
railway reservation software documentaionrailway reservation software documentaion
railway reservation software documentaionJoveria Beg
 
Synopsis on railway reservation system
Synopsis on railway reservation systemSynopsis on railway reservation system
Synopsis on railway reservation systemAnkit Verma
 
SRS for Railways Reservation System
SRS for Railways Reservation System SRS for Railways Reservation System
SRS for Railways Reservation System Vignesh Arun
 
Online Bus Reservatiom System
Online Bus Reservatiom SystemOnline Bus Reservatiom System
Online Bus Reservatiom SystemNikhil Vyas
 
Hard copy of proj doc
Hard copy of proj docHard copy of proj doc
Hard copy of proj docnawaldiatm
 
19701759 project-report-on-railway-reservation-system-by-amit-mittal
19701759 project-report-on-railway-reservation-system-by-amit-mittal19701759 project-report-on-railway-reservation-system-by-amit-mittal
19701759 project-report-on-railway-reservation-system-by-amit-mittalsatyaragha786
 
Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation systemAbhishek Yadav
 
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured ChartsOnline Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured Chartsgrandhiprasuna
 
Railway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringRailway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringDanish Javed
 
Railway Reservation System
Railway Reservation SystemRailway Reservation System
Railway Reservation SystemRoccers
 
Online movie ticket booking system
Online movie ticket booking systemOnline movie ticket booking system
Online movie ticket booking systemSikandar Pandit
 
Online Bus Reservation System
Online Bus Reservation SystemOnline Bus Reservation System
Online Bus Reservation SystemSiva Rushi
 
Airline reservation system documentation
Airline reservation system documentationAirline reservation system documentation
Airline reservation system documentationSurya Indira
 
Online travel booikng
Online travel booikngOnline travel booikng
Online travel booikngsanket shah
 

What's hot (20)

Railway Reservation System - Software Engineering
Railway Reservation System - Software EngineeringRailway Reservation System - Software Engineering
Railway Reservation System - Software Engineering
 
Online Bus Reservation
Online Bus ReservationOnline Bus Reservation
Online Bus Reservation
 
ONLINE BUS BOOKING SYSTEM
ONLINE BUS BOOKING SYSTEMONLINE BUS BOOKING SYSTEM
ONLINE BUS BOOKING SYSTEM
 
Online Bus Ticket Reservation System
Online Bus Ticket Reservation SystemOnline Bus Ticket Reservation System
Online Bus Ticket Reservation System
 
TRAIN TICKETING SYSTEM
TRAIN TICKETING SYSTEMTRAIN TICKETING SYSTEM
TRAIN TICKETING SYSTEM
 
railway reservation software documentaion
railway reservation software documentaionrailway reservation software documentaion
railway reservation software documentaion
 
Synopsis on railway reservation system
Synopsis on railway reservation systemSynopsis on railway reservation system
Synopsis on railway reservation system
 
SRS for Railways Reservation System
SRS for Railways Reservation System SRS for Railways Reservation System
SRS for Railways Reservation System
 
Online Bus Reservatiom System
Online Bus Reservatiom SystemOnline Bus Reservatiom System
Online Bus Reservatiom System
 
Hard copy of proj doc
Hard copy of proj docHard copy of proj doc
Hard copy of proj doc
 
19701759 project-report-on-railway-reservation-system-by-amit-mittal
19701759 project-report-on-railway-reservation-system-by-amit-mittal19701759 project-report-on-railway-reservation-system-by-amit-mittal
19701759 project-report-on-railway-reservation-system-by-amit-mittal
 
Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation system
 
Online Bus Service
Online Bus ServiceOnline Bus Service
Online Bus Service
 
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured ChartsOnline Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
 
Railway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringRailway Reservation System - Requirement Engineering
Railway Reservation System - Requirement Engineering
 
Railway Reservation System
Railway Reservation SystemRailway Reservation System
Railway Reservation System
 
Online movie ticket booking system
Online movie ticket booking systemOnline movie ticket booking system
Online movie ticket booking system
 
Online Bus Reservation System
Online Bus Reservation SystemOnline Bus Reservation System
Online Bus Reservation System
 
Airline reservation system documentation
Airline reservation system documentationAirline reservation system documentation
Airline reservation system documentation
 
Online travel booikng
Online travel booikngOnline travel booikng
Online travel booikng
 

Viewers also liked

Presentation on Railway Reservation System
Presentation on Railway Reservation SystemPresentation on Railway Reservation System
Presentation on Railway Reservation SystemPriyanka Sharma
 
srs for railway reservation system
 srs for railway reservation system srs for railway reservation system
srs for railway reservation systemkhushi kalaria
 
Synopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation SystemSynopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation SystemZainabNoorGul
 
Srs on-railway-reservation-system
Srs on-railway-reservation-systemSrs on-railway-reservation-system
Srs on-railway-reservation-systemRajesh Salla
 
Railway Reservation system Case study of oracle db by cj date
Railway Reservation system Case study of oracle db by cj dateRailway Reservation system Case study of oracle db by cj date
Railway Reservation system Case study of oracle db by cj datememonsana
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)Debashis Rath
 
Software Engineering ppt
Software Engineering pptSoftware Engineering ppt
Software Engineering pptshruths2890
 
State diagram railway reservation system
State diagram railway reservation systemState diagram railway reservation system
State diagram railway reservation systemmuthumeenakshim
 
Online Bus ticket reservation
Online Bus ticket reservationOnline Bus ticket reservation
Online Bus ticket reservationSmit Patel
 
Class diagram railway reservation system
Class diagram railway reservation systemClass diagram railway reservation system
Class diagram railway reservation systemmuthumeenakshim
 
Activity diagram railway reservation system
Activity diagram railway reservation systemActivity diagram railway reservation system
Activity diagram railway reservation systemmuthumeenakshim
 
Usecase diagram railway reservation system
Usecase diagram railway reservation systemUsecase diagram railway reservation system
Usecase diagram railway reservation systemmuthumeenakshim
 
Colloboration diagram railway reservation system
Colloboration diagram railway reservation systemColloboration diagram railway reservation system
Colloboration diagram railway reservation systemmuthumeenakshim
 
c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservationSwarup Kumar Boro
 
Sequencediagram railway reservation system
Sequencediagram railway reservation systemSequencediagram railway reservation system
Sequencediagram railway reservation systemmuthumeenakshim
 
Deployment diagram railway reservation system
Deployment diagram railway reservation systemDeployment diagram railway reservation system
Deployment diagram railway reservation systemmuthumeenakshim
 
Railway booking & management system
Railway booking & management systemRailway booking & management system
Railway booking & management systemNikhil Raj
 

Viewers also liked (17)

Presentation on Railway Reservation System
Presentation on Railway Reservation SystemPresentation on Railway Reservation System
Presentation on Railway Reservation System
 
srs for railway reservation system
 srs for railway reservation system srs for railway reservation system
srs for railway reservation system
 
Synopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation SystemSynopsis for Online Railway Railway Reservation System
Synopsis for Online Railway Railway Reservation System
 
Srs on-railway-reservation-system
Srs on-railway-reservation-systemSrs on-railway-reservation-system
Srs on-railway-reservation-system
 
Railway Reservation system Case study of oracle db by cj date
Railway Reservation system Case study of oracle db by cj dateRailway Reservation system Case study of oracle db by cj date
Railway Reservation system Case study of oracle db by cj date
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
Software Engineering ppt
Software Engineering pptSoftware Engineering ppt
Software Engineering ppt
 
State diagram railway reservation system
State diagram railway reservation systemState diagram railway reservation system
State diagram railway reservation system
 
Online Bus ticket reservation
Online Bus ticket reservationOnline Bus ticket reservation
Online Bus ticket reservation
 
Class diagram railway reservation system
Class diagram railway reservation systemClass diagram railway reservation system
Class diagram railway reservation system
 
Activity diagram railway reservation system
Activity diagram railway reservation systemActivity diagram railway reservation system
Activity diagram railway reservation system
 
Usecase diagram railway reservation system
Usecase diagram railway reservation systemUsecase diagram railway reservation system
Usecase diagram railway reservation system
 
Colloboration diagram railway reservation system
Colloboration diagram railway reservation systemColloboration diagram railway reservation system
Colloboration diagram railway reservation system
 
c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservation
 
Sequencediagram railway reservation system
Sequencediagram railway reservation systemSequencediagram railway reservation system
Sequencediagram railway reservation system
 
Deployment diagram railway reservation system
Deployment diagram railway reservation systemDeployment diagram railway reservation system
Deployment diagram railway reservation system
 
Railway booking & management system
Railway booking & management systemRailway booking & management system
Railway booking & management system
 

Similar to Online Railway Reservation System

Railway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringRailway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringDanish Javed
 
Train ticket reservation
Train ticket reservationTrain ticket reservation
Train ticket reservationsazzadur rahman
 
Case study of spiral process model
Case study of spiral process  modelCase study of spiral process  model
Case study of spiral process modelminal kumar soni
 
Project black book TYIT
Project black book TYITProject black book TYIT
Project black book TYITLokesh Singrol
 
Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010ShivanchalSingh
 
HDFC banking system SRS Document
HDFC banking system  SRS DocumentHDFC banking system  SRS Document
HDFC banking system SRS DocumentNavjeetKajal
 
FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)Rupai Bhadra
 
ProjectReport.docx project report pdf file
ProjectReport.docx project report pdf fileProjectReport.docx project report pdf file
ProjectReport.docx project report pdf filekomkar98230
 
ProjectReport.docx project documentation
ProjectReport.docx project documentationProjectReport.docx project documentation
ProjectReport.docx project documentationkomkar98230
 
AGRARYANS: Farm Equipment Rental System/Based on Agriculture
AGRARYANS: Farm Equipment Rental System/Based on AgricultureAGRARYANS: Farm Equipment Rental System/Based on Agriculture
AGRARYANS: Farm Equipment Rental System/Based on AgricultureIRJET Journal
 
Online Helpdesk System
Online Helpdesk SystemOnline Helpdesk System
Online Helpdesk SystemJayant Gope
 

Similar to Online Railway Reservation System (20)

Online final report
Online final reportOnline final report
Online final report
 
Atm project
Atm projectAtm project
Atm project
 
Railway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringRailway Reservation System - Requirement Engineering
Railway Reservation System - Requirement Engineering
 
Train ticket reservation
Train ticket reservationTrain ticket reservation
Train ticket reservation
 
Case study of spiral process model
Case study of spiral process  modelCase study of spiral process  model
Case study of spiral process model
 
Project black book TYIT
Project black book TYITProject black book TYIT
Project black book TYIT
 
Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
 
HDFC banking system SRS Document
HDFC banking system  SRS DocumentHDFC banking system  SRS Document
HDFC banking system SRS Document
 
Project synopsis.
Project synopsis.Project synopsis.
Project synopsis.
 
FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)
 
locker presentation (1)
locker presentation (1)locker presentation (1)
locker presentation (1)
 
ProjectReport.docx project report pdf file
ProjectReport.docx project report pdf fileProjectReport.docx project report pdf file
ProjectReport.docx project report pdf file
 
ProjectReport.docx project documentation
ProjectReport.docx project documentationProjectReport.docx project documentation
ProjectReport.docx project documentation
 
AGRARYANS: Farm Equipment Rental System/Based on Agriculture
AGRARYANS: Farm Equipment Rental System/Based on AgricultureAGRARYANS: Farm Equipment Rental System/Based on Agriculture
AGRARYANS: Farm Equipment Rental System/Based on Agriculture
 
Online bus ticket booking
Online bus ticket bookingOnline bus ticket booking
Online bus ticket booking
 
Srs for banking system
Srs for banking systemSrs for banking system
Srs for banking system
 
Online Helpdesk System
Online Helpdesk SystemOnline Helpdesk System
Online Helpdesk System
 
bus reservation.pptx
bus reservation.pptxbus reservation.pptx
bus reservation.pptx
 

More from Prince Kumar

A letter from mom and dad
A letter from mom and dadA letter from mom and dad
A letter from mom and dadPrince Kumar
 
Factors influencing creativity
Factors influencing creativityFactors influencing creativity
Factors influencing creativityPrince Kumar
 
Car portal- Ewa final assignment
Car portal- Ewa final assignmentCar portal- Ewa final assignment
Car portal- Ewa final assignmentPrince Kumar
 
Prisoner Management System
Prisoner Management SystemPrisoner Management System
Prisoner Management SystemPrince Kumar
 
Hotel Management system in C++
Hotel Management system in C++ Hotel Management system in C++
Hotel Management system in C++ Prince Kumar
 
SAD - Waiter on Wheels
SAD - Waiter on WheelsSAD - Waiter on Wheels
SAD - Waiter on WheelsPrince Kumar
 
Professional enterprise and development - IBM
Professional enterprise and development - IBMProfessional enterprise and development - IBM
Professional enterprise and development - IBMPrince Kumar
 
Feedback System in PHP
Feedback System in PHPFeedback System in PHP
Feedback System in PHPPrince Kumar
 

More from Prince Kumar (12)

A letter from mom and dad
A letter from mom and dadA letter from mom and dad
A letter from mom and dad
 
Factors influencing creativity
Factors influencing creativityFactors influencing creativity
Factors influencing creativity
 
Personality test
Personality testPersonality test
Personality test
 
Car portal- Ewa final assignment
Car portal- Ewa final assignmentCar portal- Ewa final assignment
Car portal- Ewa final assignment
 
College Network
College NetworkCollege Network
College Network
 
Prisoner Management System
Prisoner Management SystemPrisoner Management System
Prisoner Management System
 
C Programming
C ProgrammingC Programming
C Programming
 
Positive attitude
Positive attitudePositive attitude
Positive attitude
 
Hotel Management system in C++
Hotel Management system in C++ Hotel Management system in C++
Hotel Management system in C++
 
SAD - Waiter on Wheels
SAD - Waiter on WheelsSAD - Waiter on Wheels
SAD - Waiter on Wheels
 
Professional enterprise and development - IBM
Professional enterprise and development - IBMProfessional enterprise and development - IBM
Professional enterprise and development - IBM
 
Feedback System in PHP
Feedback System in PHPFeedback System in PHP
Feedback System in PHP
 

Recently uploaded

"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectErbil Polytechnic University
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 

Recently uploaded (20)

"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction Project
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 

Online Railway Reservation System

  • 1. ASIA PACIFIC INSTITUTE OF INFORMATION TECHNOLOGY DATABASE AND WEB DATABASE SYSTEMS Module Code: CE00318-2 INDIVIDUAL PROJECT Submitted By: Submitted To: Prince Kumar Ms. Sulekh Sharma PT1082219 Level-2 (Module Lecturer) COMPUTING
  • 2. CERTIFICATE This is to certify that Prince Kumar of 6th Semester student (Computing Branch) of APIIT SD INDIA have successfully completed her individual assignment of DWDS module on ‘Online Railway Reservation System’ with the complete guidance of Ms. Sulekh Sharma. Prince Kumar (PT1082219) Ms. Sulekh Sharma Level-2 (Module Lecturer) COM
  • 3. ACKNOWLEDGEMENT Around a period of two months I was working hard to achieve my goal. I have strived hard to complete my assignment. My goal was to give an exceptional and appreciating performance. Though there were lots of problems I had faced but I moved on and on. Firstly, I would like to thank APIIT SD INDIA to provide me the opportunity to do such an assignment. I am very much thankful to my Module Lecturer Ms. Sulekh Sharma. For her uninterrupted support in the development of the assignment and have enabled me to complete my assignment on the given period of time. She was always there to listen and to give advice and she also taught me how to express my ideas and views professionally. I greatly acknowledge the effective contribution of Director R.K Choudhary, who encouraged me and provided me with all kinds of conveniences including Ultra modern Library and Computer Lab. I would also like to thank all our friends, family and everybody else who helped me anyways in our assignment. Last but not the least; I want to acknowledge all my friends and colleagues who supported me in my assignment. Prince Kumar Level 2 Computing
  • 4. Table of Contents CERTIFICATE..................................................................................................................................................2 ACKNOWLEDGEMENT...................................................................................................................................3 1.0. Introducing Online Railway Reservation System.............................................................................5 2.0. Abstract.............................................................................................................................................5 3.0. Problem Background ........................................................................................................................6 4.0. Proposed Solution.............................................................................................................................6 5.0. Programming Environment...............................................................................................................7 6.0 Entity Relationship Diagram...................................................................................................................8 7.0 Mapping of ERD to Relational Model......................................................................................................9 8.0 Initial Schema........................................................................................... Error! Bookmark not defined. 9.0 Normalization........................................................................................................................................10 10.0 Database Design..................................................................................................................................12 11.0 Table Design.......................................................................................................................................13 12.0 Toolbar................................................................................................................................................16 13.0 Form Design........................................................................................................................................17 14.0 Report..................................................................................................................................................21 15.0 DDL Queries AND Constraints ..........................................................................................................22 16.0 DML Queries ......................................................................................................................................24 17.0 Conclusion ..........................................................................................................................................26 18.0 References.............................................................................................. Error! Bookmark not defined.
  • 5. 1.0. Introducing Online Railway Reservation System Technology has transformed many aspects of life in the 21st century, including the way many of us make train reservations. For example, to make ticketing more convenient for travelers, Indian Railways* has started an online reservation system, which helps us in booking tickets from the comfort of our homes or offices. While this is convenient for most people, it has made things particularly easier for people residing in remote locations. The system is basically concerned with the reservation and cancellation of railways tickets of the passenger. The need of this system arose because as is the known fact that India has the largest railway network in the whole of the world and to handle it manually is quite a tough job. By computerizing it, we will be able to overcome many of its limitations and will be able to make it more efficient. The handling of data and records for such a vast system is a very complex task if done manually but it can be made easier if the system is computerized. This System is basically concerned with the reservation and cancellation of railways tickets of the passenger. The need of this system arose because as is the known fact that India has the largest railway network in the whole of the world and to handle it manually is quite a tough job. By computerizing it, we will be able to overcome many of its limitations and will be able to make it more efficient. The handling of data and records for such a vast system is a very complex task if done manually but it can be made easier if the system is computerized. The Customers are required to register on the server for getting Access to the database and query result retrieval. Upon registration, each user has an account which is essentially the ‘view level’ for the customer. The account contains comprehensive information of the user entered during registration and permits the customer to get access to his past reservations, enquire about travel fare and availability of seats, make afresh reservations, update his account details, etc. 2.0. Abstract Railway Reservation System is a complex online distributed transaction application based on client server architecture. The salient features of the software include allowing user from anywhere to do a booking for a journey in any train in any class from anywhere to anywhere; handling reservation, modifications cancellation/refunds.
  • 6. This project is all about the railway reservation online i.e., Software includes allowing user from anywhere to do a booking for a journey in any train in any class from anywhere to anywhere; handling reservation, modifications cancellation/refunds. 3.0. Problem Background In the existing system Reservation is done manually by a user at railway reservation counters. User has to wait for a long time in the queue to get the reservation. Like this wasting the time of user and for this lot of man power is required. and lot of paper work is also required. 4.0. Proposed Solution To avoid all the above pitfalls the system proposed is “Railway Reservation System”. In this all the reservation process through online. This system saves money, manpower, time. It provides security compared to existing system. The basic functions being performed by our system are status, reservation and cancellation. These functions will be handles with the help of following sub functions:-  It reserves and cancels seats of passenger.  It contains Information about the stations.  It contains information about the trains.  It contains information about the passenger.  It contains the details of reservations fare.  It makes entries for reservation, waiting, cancelled tickets.  It will update for uptime and downtime trains.  The passenger could search for trains from a particular source to destination.  The record of train status includes dates for which tickets can be booked, total number of seats available, number of seats already booked and waiting slot How does it work? Railway Reservation system is to eliminate heavy load paper work by converting it into web based computer process. This web-based application is completely client - server oriented for processing
  • 7. 5.0. Programming Environment Visual Studio .NET2008 Visual Studio .Net is the rapid application development tool for BASIC. Visual Studio .Net offers complete integration with ASP.NET and enables to drag and drop server controls and design Web Forms as they should appear when user views them. ASP.NET programming languages ASP.NET has been designed to work seamlessly with WYSIWYG HTML editors and other programming tools, including Microsoft Visual Studio .NET. Not only does this make Web development easier, but it also provides all the benefits that these tools have to offer, including a GUI that developers can use to drop server controls onto a Web page and fully integrated debugging support. Developers can choose from the following two features when creating an ASP.NET application, Web Forms and Web services, or combine these in any way they see fit. SQL Server 2008 A database system must provide the following features:  A variety of user interfaces  Physical & Logical data independence  Query optimization  Data integrity  Concurrency control  Backup and recovery  Security and authorization SQL Server is a Relational Database Management System. The SQL Server relational language is called Transact-SQL.SQL is asset-oriented language. This means that SQL can query many rows from one or more tables using just one statement. This feature allows the use of this language at a logically higher level than procedural languages. Another important property of SQL is its non- procedurally. SQL contains two sub languages DDL and DML.
  • 8. 6.0 Entity Relationship Diagram Train Status Passenger user Route Station Start Has Book Has Has Book Route Status End S_id S_name Seat_no Booking_d ate Availibilit y Stop_no Booking Date T_no U_id U_name password P_name P_age P_gender T_no T_name T_type T_Class 1 M 1 M 1 M 1 M
  • 9. List of entity type: S No. Entity Type Attributes 1. Passenger ticket-id, pssngr_name,pssngr_age,pssngr_sex,pssngr_seatno,train_id 2. Train Train_no, Train_name, source_id, destination_id, days, no of seats 3. Train Status No. of seat available, No. of booked seat , Waiting seat, Booking date. 4. Route Tr_no, St_id, stop_no. , arr_time, dep_time, dis. 5. Station Station_id,Station_ name 6. User User_id,user_name,usr_age,user_email,user_password,user_phn 7.0 Mapping of ERD to Relational Model
  • 10. 8.0 Normalization User_registration User_id User_name User_address User_password User_Email User_Phone Station Station_id Station_name TRAIN_info Train_no, train_name train_typ Soucre_name Destination_name Trninfo_days Train_no Sun Mon Tue Wed Thu Fri Sat route Train_no Stop_no Arrival_time, Deptaure_time, Distance Station_id, Station_route Station_id Stop_no Train_no Train_status Train_no journey_date booked_date total_seats, A1 A2 SL W1 W2 W3 Passerger Ticket_id Passngr_name Passngr_age Passngr_gender Passngr_seatno Train_id Passenger_info Train_id Ticket_id Source_id Destination_id Class_type Resrvtion_type
  • 11. Booking Train_no Ticket_id User_id Booking_steats Available_date Date_sts Trninfo_AC1 Train_id Trainstatus_AC1 Trainnfr_AC1 Trninfo_AC2 Train_id Trainsts_AC2 Trainfr_AC2 Trninfo_SL Train_id Trainsts_SL Trnfr_SL TRAIN_info Train_no, train_name train_type Source_name Destination_name
  • 12. 9.0 Database Design passenger ticket_id pssngr_name pssngr_age pssngr_sex pssngr_seatno train_id passenger_status ticket_id source_sid dest_sid ticket_class pssngr_ticketstatus train_id route train_no stop_no arival_time deprt_time dist station station_id station_name station_route station_id train_no stop_no ticket_resrv user_id ticket_id train_no date_avialable date_status train train_no train_name source_sid dest_sid train_type train_Ac1 train_no Ac1_fare Ac1_seat train_Ac2 train_no Ac2_fare Ac2_seat train_rdays train_no sun mon tues wed thurs fri sat train_sl train_no Sl_fare Sl_seat trainAC1_status train_no date_available AC1_reserveseats AC1_waitingseats AC1_availableseats trainAC2_status train_no date_available AC2_reserveseats AC2_waitingseats AC2_availableseats trainSL_status train_no date_available sl_reserveseats sl_waitingseats sl_availableseats user_registration user_id user_name user_password user_email user_address user_phone
  • 13. 10.0 Table Design Passenger Passenger Status The passenger status consisting of six columns: ticket_id, source_sid, dest_sid, ticket_class, pssngr_ticketstatus, train_id
  • 14. Route Station Route Station Ticket Reservation Route consisting of five columns Train_no, stop_no, arrival_time (i.e. arrival time of train), deprt_time (departure time of train),dist(distance covered by train) The station route It Consists of station_id , train_no , stop_no Station has two column Station_id , station_name Ticket Reservation consist of User_id , ticket_id , train_no , Available_ date , date_status
  • 15. Train User Registration Train consists of Train_no, Train_name, Source_sid, dest_sid , train_type Registration form of user consists of user_id, user_name, user_password, user_email, user_address and user_phone.
  • 16. 11.0 Toolbar (For Logout) – From this user can go back to login page. If user terminates session then user can easily get on “Login Form”. (Booking) – For Reservation of ticket. User can book ticket by giving some Details. (Train between Stations)- To find no of running train with source id and destination id. Contact Us – For Further info about Admin or website handlers or organization Add Train Add Route – For adding Route
  • 17. 12.0 Form Design Fig: Login Form Fig: Home page Admin
  • 18. Fig: Add Route Fig: Add Station
  • 20. Fig: Welcome page of User Fig: Registration Form
  • 21. Fig: Train between Stations 13.0 Report Fig : Users Report Fig : Show Station
  • 22. 14.0 DDL Queries AND Constraints  Creation of Database CREATE DATABASE, railway;  Creation Of Table Ticket Reservation CREATE TABLE [dbo].[ticket_resrv]( [user_id] [int] NOT NULL, [ticket_id] [int] NOT NULL, [train_no] [int] NOT NULL, [date_avialable] [varchar](50) NOT NULL, [date_status] [varchar](50) NOT NULL ) ON [PRIMARY] Train CREATE TABLE [dbo].[train]( [train_no] [int] NOT NULL, [train_name] [varchar](50) NOT NULL, [source_sid] [varchar](50) NOT NULL, [dest_sid] [varchar](50) NOT NULL, [train_type] [varchar](20) NOT NULL, CONSTRAINT [PK_train] PRIMARY KEY CLUSTERED ( [train_no] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] Train Running Days CREATE TABLE [dbo].[train_rdays]( [train_no] [int] NOT NULL, [sun] [varchar](50) NOT NULL, [mon] [varchar](50) NOT NULL, [tues] [varchar](50) NOT NULL, [wed] [varchar](50) NOT NULL, [thurs] [varchar](50) NOT NULL, [fri] [varchar](50) NOT NULL, [sat] [varchar](50) NOT NULL ) ON [PRIMARY]
  • 23. ALTER TABLE [dbo].[train_rdays] WITH CHECK ADD CONSTRAINT [FK_train_rdays_train] FOREIGN KEY([train_no]) REFERENCES [dbo].[train] ([train_no]) Passenger CREATE TABLE [dbo].[passenger]( [ticket_id] [int] NOT NULL, [pssngr_name] [varchar](50) NOT NULL, [pssngr_age] [ntext] NOT NULL, [pssngr_sex] [varchar](50) NOT NULL, [pssngr_seatno] [int] NOT NULL, [train_id] [int] NOT NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] Train AC2_Status CREATE TABLE [dbo].[trainAC2_status]( [train_no] [int] NOT NULL, [date_available] [varchar](50) NOT NULL, [AC2_reserveseats] [int] NOT NULL, [AC2_waitingseats] [int] NOT NULL, [AC2_availableseats] [int] NOT NULL, CONSTRAINT [PK_trainAC2_status] PRIMARY KEY CLUSTERED ( [train_no] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] User Registration CREATE TABLE [dbo].[user_registration]( [user_id] [int] NOT NULL, [user_name] [varchar](50) NOT NULL, [user_password] [varchar](50) NOT NULL, [user_email] [varchar](50) NOT NULL, [user_address] [varchar](50) NOT NULL, [user_phone] [int] NOT NULL, CONSTRAINT [PK_user_registration] PRIMARY KEY CLUSTERED ( [user_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]
  • 24. 15.0 DML Queries Add Station Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Public Class Add_station Inherits System.Web.UI.Page Dim rail As String = ConfigurationManager.ConnectionStrings("database").ConnectionString Dim con As New SqlConnection(rail) Public Sub Details() End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then bindata() End If End Sub Public Sub bindata() con.Open() Dim cmd As New SqlCommand("select * from station", con) Dim dr As SqlDataReader = cmd.ExecuteReader() Grid_Station.DataSource = dr Grid_Station.DataBind() dr.Close() con.Close() End Sub Protected Sub btn_Submit_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_Submit.Click Try con.Open() Dim cmd As New SqlCommand("insert into station values ('" & TxtStnt_Id.Text & "','" & TxtStnt_Name.Text & "')", con) cmd.ExecuteNonQuery() con.Close() MsgBox("Successfully Inserted", MsgBoxStyle.OkCancel) bindata() TxtStnt_Id.Text = " " TxtStnt_Name.Text = " " Catch ex As SqlException MsgBox(ex.Message) End Try
  • 25. End Sub Private Sub Grid_Station_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles Grid_Station.RowEditing Grid_Station.EditIndex = e.NewEditIndex bindata() End Sub Private Sub Grid_Station_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles Grid_Station.RowUpdating Dim row As GridViewRow = Grid_Station.Rows(e.RowIndex) Dim station_id As String = CInt(CType(row.Cells(0).Controls(0), TextBox).Text) Dim station_name As String = CType(row.Cells(1).Controls(0), TextBox).Text con.Open() Dim sql As String = ("update station set station_name='" & station_name & "' where station_id='" & station_id & "'") Dim cmd As New SqlCommand(sql, con) cmd.ExecuteNonQuery() con.Close() Grid_Station.EditIndex = -1 bindata() MsgBox("Details has been sucessfully updated !!!)") End Sub Protected Sub Grid_Station_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles Grid_Station.SelectedIndexChanged End Sub Protected Sub TxtStnt_Id_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles TxtStnt_Id.TextChanged End sub End Class
  • 26. 16.0 Conclusion The main aim of developing Reservation system is to provide all information that is required by the users. User friendliness is a must that is the user must get the details without complicated searching procedures. Other important requirements of software are data security, extensibility and maintainability. All these features are included in this web application. The project greatly helped in understanding the various phases in website development and exposure to a new developer platform MS Visual Studio .Net and database MS SQL Server.