Railway Booking
System
A Mysql Project
Submitted By:
Raj Kansal - 502304205
Jasmon Kaur - 502304199
Danish Madaan - 502304224
Railway Booking System
The DB Management System that we’ll be designing is Railway Booking System
What is this system all about?
The Railway Booking System is a sophisticated computerized platform mostly used by railway companies to facilitate the booking, reservation, and management of train tickets for passengers.
It comprises of various functionalities such as ticket booking, seat/berth reservation, fare calculation, payment processing, and passenger information management.
Why do we need this system?
We need this system because:
WhAT is the scope of this system?
The scope of this system comprises various components of the reservation and booking of tickets - including
It encompasses functions including refunds, cancellations, and integration with other services.
Railway Booking system scope can be scaled further to services like package delivery, travel insurance, and tourism-related bookings, depending on the goals of the railway company and the capabilities of the system.
How does this system work?
Railway booking system involves various steps, wherein a passenger can book tickets, reserve seats,make payments and generate his own ticket. Along with which he can chose to cancel his ticket if he desires to.
How will this system help the organization?
The Railway Booking System offers numerous advantages to the organization:
Who are the key stakeholders in this system?
The Railway Booking System involves various stakeholders, including:
Entities and Attributes
In our project we’ll be working with railway data focused on where a user can provide his details and book a ticket and make payment for the train journey he wishes to travel for. In this we’ll be also mentioning the basic details of a train like route and its class.
The Entities, Attributes(Composite, Multivalued, Derived), Relation and Keys can be seen in the diagram given below, it also contains a legend which helps in understanding the diagram more clearly.
What went well and What didn’t
What went well?
While creating the database the most challenging part for us was to gather data, that can be used within our project. For that we visited various websites containing sample railway data and took insights from it as to how our data should look like, which eventually helped us in shaping our next thing that is ER Diagram and Relational Schema.
What didn’t go well?
While we were preparing our data, we realized that our data(i.e PNR_No column) didn’t supported the values within int data type and contained values which were beyond the limits of int datatype, after getting lot of errors, we realized we have to use another data type that is bigint that can store more bytes of data than an int does.
ER Diagram
Railway Booking System
Source:https://drive.google.com/file/d/1uJ9eI6sjFx4wtNF8Azn2uXkg1PmWtNwf/view?usp=sharing
(Use your thapar id to view)
Relational
Schema
Source: https://drive.google.com/file/d/1ZoIZdjYUITOfWoySQGWbbfG8priMfc6h/view?usp=sharing
(Use your thapar id to view)
Github Account
Our codes and mysql scripts for this project can be found at this github account mentioned below:
https://github.com/RajK19/DBMS-G005-Railway-Booking-System-BABD
DDL Commands
Zip File Link:
Script(.txt file Link): https://github.com/RajK19/DBMS-G005-Railway-Booking-System-BABD/blob/main/G005_Railway%20Booking%20System_DDL_MySQLScript_001.txt
Creating table named ‘User’
Removing the records in User
Creating table named ‘Class’
DML Commands
Insert
Inserting data into table named ‘Ticket’
Inserting data into table named ‘User’
Inserting data into table named ‘Class’
Updating the values in table name Class
DQL Commands
Displaying ‘Ticket’ data using Select command
Displaying ‘User’ data using Select command
Displaying ‘Class’ data using Select command
And we end our presentation here
Thank You :))