Professional Documents
Culture Documents
Aarohan Subedi
Aarohan Subedi
2022 Autumn
Word Count:
I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a mark of zero will be awarded.
1. INTRODUCTION
The report consists the detail about database design and working models of the Uber
rides. Uber rides is one of the leading transportation companies in the world. It is a
technology platform that enables users to request a ride with a few taps of their finger. It
connects riders to reliable, affordable rides in minutes. Uber is an international company
with services in over 60 countries and 600 cities around the world.
Uber's aim is to make transportation as reliable as running water, everywhere and for
everyone. This mission is supported by the company's focus on safety, innovation, and
sustainability. Uber works hard to ensure the safety of its riders and drivers, and to
make sure that everyone in the Uber community has the best possible experience.
In this project there is information about the uber app. The project gives the complete
record of the managemental aspects of the uber rides. It shows how the company
stores their data. First various types of data are collected and are stored separately and
are again linked together to form a functional database.
1.1. AIMS AND OBJECTIVES.
The primary aim of the Uber database is to provide the company with reliable, secure
and efficient data storage and retrieval. This data storage is used to store customer
information, driver information, and trip information. The database also supports the
company’s operations by providing analytics and insights. This allows the company to
optimize its operations, better understand customer behavior and develop new products
and services. In addition, the database supports the company’s financial operations by
providing data to generate reports and facilitate accounting.
The company have some objectives to pull off their goals. They are given below:
10. To ensure the highest level of security for customer and driver data.
1.2. Current business activities and operations
Uber ride current business activities and operations include ridesharing, food delivery,
freight, and electric scooter and bike rentals. Uber is also working on autonomous
vehicle technology, and is exploring new opportunities in the hospitality and travel
industries.
A driver may drive many vehicles, but each vehicle and a service are used by only
one driver at a time.
A driver writes a single invoice for each service he provides.
Once the customer books the service, they cannot cancel the service.
Service ticket is issued once the customer books the vehicle and the service and
will include details like driver name, type of service, total charge, estimated
duration of the destination.
The cost of the vehicle and duration can vary depending on its type. For example,
the cost of riding the motorcycle service can be cheaper than riding the car.
Bill invoice is created after service is booked by the customer.
Riders will accurately provide their payment information and personal information
when signing up.
Most riders will use their accounts to request ride services.
Majority of the riders will pay for their rides with a credit card or other accepted
payment method.
1.4. Current business activities and operations and list of Business rules
derived from operational procedures used in the system are
1.5. Framework of database schema:
CUSTOMER ENTITY
VEHICLE ENTITY
Figure 2 Entity vehicle and its attributes
DRIVER ENTITY
SERVICES ENTITY
Figure 4 Entity services and its attributes
2 INITIAL ER DIAGRAM
In this initial ERD, it is demonstrated that a single driver can own multiple vehicles, but
only one of these vehicles can be used at a time. Likewise, a vehicle can offer multiple
services, but each vehicle and service can only be used by one driver at a time.
Furthermore, multiple customers can book multiple services, but once they have booked
a service they are unable to cancel it.
A. Customer
Table Customer is a database table that stores information about customers. Its
attributes include:
B. VEHICLE
Attributes Data type Constraints Description
D. Driver Entity
Attributes Data type Constraints Description
Driver Entity
Driver_ID (PK) Driver_ID is a primary key attribute of the driver entity in the driver
table. It is used to uniquely identify each driver in the table and is used to identify
the record for each driver. This attribute is used to ensure data integrity by
preventing duplicate or incorrect entries in the table.
Customer Entity
Customer_ID (PK) Customer ID is a primary key attribute of the customer entity
in the customer table. It is a unique identifier of the customer that is used to
differentiate between customers. This attribute is used to identify each customer
record in the database and is often used for joining data from other tables. It
ensures that each customer has a unique identifier, which helps maintain data
integrity.
Services Entity
Vehicle Entity
Vehicle_ID (PK) Vehicle ID is an attribute that uniquely identifies each entry in
the Vehicle table. It is the primary key of the table, meaning that there can be no
duplicate entries. All entries must have a unique Vehicle ID, which is used to
uniquely identify a specific vehicle and maintain the integrity of the data (django,
2002).
2.3 ERD of the identified Entities with attributes and relationships.
Entity Attributes
Customer Cus_ID (PK), Cus_Location,
Cus_destination, phone number, Name,
Rating.
Vehicle Vehicle_ID (PK), Registration number,
V_location, V_Capacity, Service type
Services Service_ID(PK), S_Type, S_Date,
Vehicle_ID(FK), Availability Status,
Driver_ID(FK)
Driver Driver_ID(PK), D_Name, Bill no, Bill
issued date, Driver Status, Phone
number, Vehicle Type.
Table 5 Entities and attributes before normalization
APPLYING UNF
Uniform normalization (UNF) is a data normalization method which involves
transforming data into a uniform format or structure. This may include standardizing
column names, combining columns, or modifying data types. It is often used to ensure
that data is consistent across different systems or sources.
UNIFORM NORMALIZATION
Driver (Driver_ID,Driver_name,Bill no, Bill issued date, Driver Status, Phone number
Vehicle Type {Vehicle_ID,Regestration No, V_Location, V_Capacity, Service Type
{Service_ID, S_Type,S_date,Vehicle_ID,AvailabilityStatus,Driver_ID { Cus_ID, Name,
Cus_Location, Cus_destination,Phone number,Rating}}})
Table 6 UNF of Uber rides
OUTCOME: Repeating data are listed inside of small bracket and repeating group are
listed inside curly bracket.
UNF TO 1NF:
The First Normal Form (1NF) requires that a relation should be structured as a table
with no repeating groups, meaning that each column should contain a single value and
not a list of values. This restriction is built into the relational model with the goal of
simplicity and uniform access.
UNIFORM NORMALIZATION
Driver (Driver_ID,Driver_name,Bill no, Bill issued date, Driver Status, Phone number
Vehicle Type {Vehicle_ID,Regestration No, V_Location, V_Capacity, Service Type
{Service_ID, S_Type,S_date,Vehicle_ID,AvailabilityStatus,Driver_ID { Cus_ID, Name,
Cus_Location, Cus_destination,Phone number,Rating}}})
UNF TO 1NF
Driver (Driver_ID, Driver_ Name, Bill issued date, Bill no, Phone number, Driver
Status, Vehicle Type)
Vehicle (Vehicle_ID, Registration number, V_Location, V_Capacity)
Service (Service_ID, S_Type, S_date, Availability Status)
Customer (Cus_ID, Cus_Location, Cus_destination, Phone number, Name, Rating)
Table 7 1nf
APPLYING 2 NF
Driver Details of Driver Details of Bill
Driver_ID D_Name Bill issued date
Phone number S_Date
Driver Status. Driver_ID Bill no
Table 8 2nf
OUTCOMES:
Service Service Details
S_Type Service_ID
S_Date Vehicle_ID
Availability Status Driver_ID
Table 9 service and service details
Vehicle Vehicle_Details
Vehicle_ID Model
Driver_ID Registration number
V_Capacity
Service Type
V_Location
Table 11 Vechile and vechile details
APPLYING 3 NF
Third Normal Form (3NF) is a database normalization technique that is used to organize
data into logical entities. It is the third step in a database normalization process that
aims to reduce data redundancy and improve data integrity. 3NF is designed to ensure
that all data within a database is stored and accessed in the most efficient and logical
manner possible. 3NF requires that all data within a database is organized into separate
tables, each of which is linked together using foreign keys. The tables should contain
only data that is necessary for the purpose of the database, and all data should be
related to the primary key of the table.
Service Bill
Service Type
Bill amount
Bill duratuion
Table 12 Service bill table
OUTCOMES: When a customer books a service, they are issued a Service Ticket that
cannot be cancelled. This requires the use of transactional queries.
4 Final Erd