0% found this document useful (0 votes)
58 views

Taxi Powerpoint

This document describes a taxi booking system that allows customers to book taxis online using a database. The system stores information about customers, drivers, vehicles and bookings in database tables. It aims to make taxi booking more convenient and efficient by allowing customers to reserve taxis from any location at any time.

Uploaded by

myintzumaung97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Taxi Powerpoint

This document describes a taxi booking system that allows customers to book taxis online using a database. The system stores information about customers, drivers, vehicles and bookings in database tables. It aims to make taxi booking more convenient and efficient by allowing customers to reserve taxis from any location at any time.

Uploaded by

myintzumaung97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Car Taxi Service

INTRODUCTION

It may be difficult for people to get taxis from


their desired location , especially at night .Our
Project “Taxi Service” is a system that is joining
between a taxi company and customers. We
provide a way for users to access data that are
stored using Database Management System.
Users can go online and book vehicles that they
want from the system. Using this system ,we want
to help them to serve vehicles safely and speedily.
Project Background

The rapid development of computer technology,


companies and enterprises has been deep into all
aspects of enterprise management. Transportation is
an important industry within the growing economy.
Taxi service is an important transportation option
that satisfy a variety of problems. Since the taxi
vehicle information is complicated, we have to use
database management system.
To keep information of customers , drivers and cars

To keep information numbers of bookings for


enterprise to meet customer expectations Objectives of the
project

To save time during transit

To travel promptly, efficiently, comfortably ,and safely


Overview of the project
 This project is a web-based application that
provides online booking system to users
 Using the DBMS, we can mange and access
all the data in the system
 The system have 4 types of users –
customers, drivers, HR and administrator
 Administrators are the ones who have
privilege to manage and access all
functionalities and features
 Users, drivers, HR are the ones who can only
use limited access
 Improve comprehension of taxi service
operations and perspectives of both
users and drivers.

 Project management and problem


Benefit of solving skills
the  Better understanding about DBMS and
project want to learn more about DBMS
through the project

 Better understanding about


assumptions and constraints
Background Theory

Design Process  Determining the purpose of the database system.


 Determining the data needs of the people who would use
this database system, in other words the specification of the
user requirement.
 Creating the Entity-Relationship (ER) diagram for the
conceptual design and deciding how to represent real world
data in the design.
 Mapping the conceptual design into the relational database
schema.
 Specifying the appropriate primary keys, foreign keys and
integrity constraints.
 Normalizing the design using normalization rules when
necessary.
 Deciding what type of users may exist in the database
application and which privileges to grant them.
ER Diagram of the Taxi Service System
booking ( booking_id, customer_id, driver_id, car_id, origin, destination,
distance, fee, passenger_count, booking_time )
category ( model, manufacturer, capacity )
car ( car_id, license_no, category)
customer ( customer_id, name, ph_no )
driver ( driver_id, license_no, name, salary )
shift ( shift_id, start_time, end_time, day )
driver_shift ( driver_id, shift_id )

Database Schema
Detail Implementation

MySQL language is used in this project. There


are several reasons MySQL was chosen. One
of the primary reasons is that MySQL is a
robust and reliable database management
system that has been in use for many years. It
is open source and widely used, so there is a
wealth of documentation and community
support available. MySQL also offers high
performance and scalability, making it suitable
for handling large datasets and complex
applications. It also provides a range of
features such as support for multiple storage
engines, transaction processing, and security
features to protect sensitive data. Overall,
MySQL is a popular choice for projects that
require a stable and flexible database
management system. MySQL server 8.0 is
used in this project.
Implementation

The following is the implementation of


the database schema using the Data
Definition Language (DDL) of MySQL.
The purpose of the DDL is to specify the
database schema and consistency
constraints of data which are to be stored
in the database. Then the Data
Manipulation Language (DML) is used to
insert data into the relations.
Create Booking Table
create table booking (
DDL
booking_id Statements varchar(10), Create Driver_Shift Table
customer_id varchar(10),
create table driver_shift
driver_id insert into( booking varchar(10),
values ( 'b-1', '1', 'd-1', 'c-3',
driver_id
car_id varchar(10),
varchar(10), "lat":96.0930221943066}',
'{"lon":17.001664258842116,
shift_id
origin varchar(10),
JSON not null,"lat":96.10102703578934}',
'{"lon":16.94861569961109,
primary
destinationkey 6.4, 3200, 2, '2023-1-9 Create
JSON Create Create
Create
Create
(driver_id,shift_id),
not null,
09:27:11'
Category
Shift
Car Table
Customer
); Driver
Table
Table
Table
Table
foreign
distance key (driver_id)
double notreferences
null,
fare driver(driver_id)
numeric(8,2) noton update
null,
create table
table driver
shift ( (
createpassenger_count
cascade on delete cascade,
int not null,
foreign
driver_id
create table
shift_id key
car
booking_time (
category (( (shift_id)
datetime references
varchar(10),
varchar(10), not null,
create table
license_no
customer varchar(20) not null
car_id
primary key varchar(10),
start_time
model shift(shift_id)
time(booking_id),
not null,
varchar(10), onunique,
update
customer_id
name
license_no
varchar(10),
varchar(20)varchar(20)
not nullnull,notdelete
unique, null, cascade
end_time
foreign
manufacturer key cascade
time not on
(customer_id)
varchar(20), references
name
salary
categoryvarchar(10), varchar(20)
numeric(8,2) notnull
not null,default
);capacity
day varchar(10)
int not null,
customer(customer_id)
not null, not null unique, on update
ph_no
primary
primary keykey (car_id), varchar(15)
200000.00,
(shift_id)
primary
primary
foreign key
key (category) cascadecategory(model)
(model)
(customer_id)
(driver_id)
references on delete set null,
);
); foreign key on update cascade (driver_id)
on deletereferences
set null
); driver(driver_id) on update
insertinto
insert into shift values
driver values (‘d-1’,
('s-1', '00:00:00',
cascade on'08:00:00',
‘A/0001/12’, delete
‘Ko Oo’,set null,
insert
insert into car
foreign
into driver_shift
category
valuesvalues
key ('c-1','Monday'),
values ('carens', 'kia',
(car_id)
'AA-1234' 6),
references
300000.00),
, 'probox'), car(car_id) on
insert into customer values
('s-2',‘B/0002/34’,
('d-1','s-2'),(‘d-2’, '08:00:00',
('d-1','s-5'), ('1', 'Mg Mg',
'16:00:00',
('d-1','s-8'), '09-11122223'),
'Monday'),
('d-1','s-11'), ('d-1','s-14'),
('c-2', ('probox',
update
‘Nyi
AA-5678 ,'toyota'
Nyi’, cascade , 4),
on
250000.00),
'probox'), delete set null
('d-1','s-17'), ('s-3', '16:00:00', ('2', 'Hla
'24:00:00',
('d-1','s-20'),('d-2','s-1'); Hla', '09-33344412');
'Monday');
); (‘d-3’, ‘C/0003/45’, ('qq3',
‘Cho'chery',
('c-3', 'AA-2619', Oo’, 4);
200000.00);
'probox');
DML Statements

The Taxi Service System is required to be


connected to the application backend server to
work to its full potential since some of the
information stored in the database, for example,
JSON data stored in booking table need
geocoding or geolocation api(s) to serve in the
way they are intended to. The followings are
the DML queries which have their practical
uses when connected to the application server.
Information of passengers who made booking
Vehicles
The
Customerswhich
Driver who can fit more
never
is working
made than
in 4 passengers
booking
shift now
on Feb 12, 2023

select *
select name, ph_no
from driver natural join driver_shift natural join shift
from customer
where
select
select
where hour(now())
car_id, name,* between
license_no
customer_id,
not exists (select ph_no hour(start_time) and hour(end_time)
and day inbooking
from (dayname(date(now())));
from
fromcustomer
where
natural
car natural customer.customer_id
join booking
join category =
booking.customer_id
where
) date( booking_time ) = '2023-2-12' ;
whereby
order capacity
name; > 4;
Users and Privileges
For Admin

GRANT ALL PREIVILEGES ON *.* TO ‘admin’@’%’

For Driver
For HR
CREATE USER ‘driver’@’%’
CREATE USER ‘HR’@’%’
GRANT SELECT ON driver TO GRANT SELECT ON driver TO
‘driver’@’%’ ‘HR@’%’
GRANT SELECT ON shift TO GRANT SELECT ON shift TO ‘HR@’%’
‘driver’@’%’ GRANT SELECT ON driver_shift TO
GRANT SELECT ON driver_shift TO ‘HR@’%’,
‘driver’@’%’ GRANT UPDATE ON driver_shift TO
‘HR’@’%’,
GRANT UPDATE ON driver to
‘HR’@’%’
CREATE USER ‘customer’@’%’
GRANT SELECT ON customer TO
‘customer@’%’
GRANT SELECT ON booking TO
‘customer’@’%’
GRANT SELECT ON car (‘license_no’)
TO ‘customer@’%’
GRANT SELECT ON driver
(‘driver_name’, ‘license_no’) TO
‘customer’@’%’
For Customer GRANT UPDATE ON customer
(‘customer_name’, ’ph_no’) TO
‘customer’@’%’
CONCLUSION

The mobile application has been successfully developed to provide the


people with easy and quick access to the taxi services. The system
focuses on the creation of taxi reservation system so that the taxi
company could provide services to its customers in an effective and
efficient way. The project is developed to help people get to their
destination easily and without wasting time.
Advantages of
using this project
Users can easily enjoy booking
through their smartphones and
without any problem. With the
availability of online taxi
services people can now book
taxi anytime and anywhere
from the comfort of their
home. They do not have to go
out on the streets to do so. So,
this takes negligible amount of
time. Plus, it guarantees safety
to the passengers even though
at night.
Disadvantages of using
this project/ Limitation

Since the taxi service company


of this project is relatively small
local one, there are some
restrictions such as
• Not being able to choose
desired car model or driver
• Having only two service
categories with the same fare
rate – normal and 6-seater,
which means there are no
premium, more expensive
categories.
REFERENCES
[1] Grab Myanmar Application
[2] Database System Concepts 7th Edition
[3] https://dev.mysql.com/downloads/mysql/

You might also like