top of page

Design Bus Reservation Database System | Database Design and Implementation Help

INTRODUCTION

  • This system is basically concerned with online reservation of BUS tickets for passengers who are traveling with HARIOM TRAVELLERS.

  • In this project we are trying to educate how reservation is done.

  • Keep track of all of its passengers and schedule their journey accordingly.

  • Maintaining records of passenger travelling in the different bus on different dates reaching different destinations.

  • Maintaining records of passenger travelling in the different buson different dates reaching different destinations.


SCOPE OF STUDIES

  • All the manual work should be converted and computerized so that the manual work of employees will be reduced.

  • The database should be stored in a computer rather than storing all the records manually.

  • Introducing a new online ticketing system is not only technological innovation but also will improve the BUSservices to a certain extent. It solves the difficult problems of BUSticketing.


FEATURES

  • Surfing data is easy.

  • The wait time ofpassengers will be reduced.

  • Accuracy of the information.

  • It is a fast process.

  • Data is efficient


These are the following entities that are related to reservation.

  1. DRIVER

  2. BUS

  3. CUSTOMER

  4. PAYMENTS

  5. RESERVATION

  6. TRANSACTION REPORT


1.DRIVER and itsattributes.

  • DRIVER_ID INT PRIMARY KEY

  • DRIVER_NAME VARCHAR

  • BUS_ID INT FOREIGN KEY


2.BUS and its attributes.

  • BUS_ID INT PRIMARY KEY

  • BUS_NO INT

  • BUS_TYPE VARCHAR

  • BUS_SEATS INT

  • DRIVER_ID INT FOREIGN KEY


3.PASSENGER and its attributes.

  • PASSENGER_ID INT PRIMARY KEY

  • FNAME VARCHAR

  • LNAME VARCHAR

  • GENDER VARCHAR

  • AGE INT

  • CONTACT_NO INT


4.PAYMENTS and its attributes.

  • PAYMENT_ID INT PRIMARY KEY

  • PASSENGER_ID INT FOREIGN KEY

  • RESERVATION_ID VARCHAR FOREIGN KEY

  • PAYMENT_DATE DATE


5.RESERVATION and its attributes.

  • RESERVATION_ID VARCHAR PRIMARY KEY

  • PASSENGER_ID INT FOREIGN KEY

  • BUS_ID INT FOREIGN KEY

  • DEPARTURE_TIME DATETIME

  • DESTINATION VARCHAR

  • RESERVATION_DATE DATE


6.TRANSACTION_REPORT and its attributes.

  • REPORT_ID INT PRIMARY KEY

  • PASSENGER_ID INT FOREIGN KEY

  • RESERVATION_ID VARCHAR FOREIGN KEY

  • PAYMENT_ID INT FOREIGN KEY

  • REPORT_DATE DATE



TABLES CREATION

1.CREATE DATABASEBUS_RESERVATION_SYSTEM

ree


2.ADDING TABLE DRIVER TO DATABASE

ree


3.ADDING TABLE BUS TO DATABASE

ree


4.ADDING TABLE PASSENGER TO DATABASE

ree


5.ADDING TABLE PAYMENTS TO DATABASE

ree


6.ADDING TABLE RESERVATION TO DATABASE

ree


7.ADDING TABLE TRANSACTION_REPORT TO DATABASE

ree


8.ADDING TABLE TRANSACTION_REPORT TO DATABASE

ree



INSERTING VALUES INTO TABLES


1.SELECT * FROM DRIVER

ree

2.SELECT * FROM BUS

ree


3.SELECT * FROM PASSENGER

ree


4.SELECT * FROM PAYMENTS

ree


5.SELECT * FROM RESERVATION

ree


6.SELECT * FROM TRANSACTION_REPORT

ree



SUB QUERIES

ree


1. Count the total number of BUSES HAVNG AC BUSTYPE.

ree


2. Display WHOLE DATA of the DRIVERS starting from LETTER R.

ree

3. Display WHOLE DATA of the DRIVER who drive the bus with BUS_ID=101.

ree

4. Display WHOLE DATA of DRIVER_ID 40.

ree

5. Display THE BUSES having SEATS 35.

ree

5. Count the total number of BUSES HAVNG NON AC BUSTYPE.

ree


6.DISPLAY FIRST 5 PASSENGERS DETAILS

ree


7.DISPLAY ONLY MALE PASSENGERS WITH DETAILS

ree


8.DISPLAY PASSENGERS DETAILS IN ASCENDING ORDER

ree


9.DISPLAY ONLY FEMALE PASSENGERS

ree


10.DISPLAY THE RECORD OF PASSENGER HAVING LASTNAME BHENDE

ree

11.CHANGE THE CONTACT NUMBER OF PASSENGER NIRMAL.

ree


12.CHANGE THE DATATYPE OF CONTACT_NO FROM INT TO VARCHAR.

ree


13.DISPLAY DETAILS OF PASSENGER HAVING AGE LESS THAN OR EQUAL TO 30

ree


14.DISPLAY THE TOTAL NUMBERS OF RESERVED PASSENGER AS TOTAL_NO_PASSENGER.

ree


15.DISPLAY THE PAYMENT STATUS HAVING PASSENGER_ID 1 AND PAYMENT_DATE 09/09/2022

ree


16.DISPLAY THE BUS_ID OF HAVING DESTINANTION MUMBAI.

ree


17.DISPLAY PAYMENT_ID OF PASSENGER_ID 1.

ree




JOINS


1.INNER JOINS

DISPLAY THE FIRSTNAME WITH THERE RESPECTIVE RESERVATION DATE.


ree


DISPLAY THE FIRSTNAME,GENDER WITH THERE RESPECTIVE RESERVATION DATE AND

BUS_ID IN EHICH THEY ARE GOING TO BE TRAVEL.

ree


2.OUTER JOIN


RETRIEVE BUS_NO, BUS_TYPE, DRIVER_NAME FROM THE DRIVER AND BUS

TABLES TABLES

ree


RETRIEVE FNAME, PAYMENT_DATE, PAYMENT_ID FROM THE PASSENGER

ree



VIEWS


CREATE VIEW PASSENGER_RESERVATION_DETAILS

ree


Observation or Conclusion :

  • The main purpose of maintaining this database for the BUS reservation system is to reduce the error involved in booking and cancellation of tickets and make it convenient for customers and to maintain the data about customers and seat available.

  • By making an online application, many loopholes that exist in manual maintenance of the records can be removed.

  • The speed of obtaining data will be fast.

  • To overcome all the problems of the manual reservation system we can implement this database which includes customer details , availability of seats in BUS, number of BUSES and their details.




To get any other database related help you can contact us or send your project requirement details at:


realcode4you@gmail.com

Comments


REALCODE4YOU

Realcode4you is the one of the best website where you can get all computer science and mathematics related help, we are offering python project help, java project help, Machine learning project help, and other programming language help i.e., C, C++, Data Structure, PHP, ReactJs, NodeJs, React Native and also providing all databases related help.

Hire Us to get Instant help from realcode4you expert with an affordable price.

USEFUL LINKS

Discount

ADDRESS

Noida, Sector 63, India 201301

Follows Us!

  • Facebook
  • Twitter
  • Instagram
  • LinkedIn

OUR CLIENTS BELONGS TO

  • india
  • australia
  • canada
  • hong-kong
  • ireland
  • jordan
  • malaysia
  • new-zealand
  • oman
  • qatar
  • saudi-arabia
  • singapore
  • south-africa
  • uae
  • uk
  • usa

© 2023 IT Services provided by Realcode4you.com

bottom of page