Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Presentation on

Online Ordering System-ER Diagram


Course Code: SE-223
Course Title: Database Systems

Submitted BY: Submitted to:


Rakib Mahmud Mridha Ms. Nusrat Jahan
191-35-419 Lecturer
Dept of Software Engineering Dept of Software Engineering
Daffodil International University Daffodil International University
Scenario
• A courier company has a number of branches. Every branch
offers different products. Many employees and deliveryman
are included in every branches. Customers choose products
and can make a order for it to the employee. The employee
accept order and deliver the product via deliveryman to the
customer. The company needs to make a system for online
ordering system. There will be three typse of users (employee,
customer, deliveryman). For registration, each user should
enter their name, address, phone number. Employee and
deliveryman should include their name of branch. For
products there should have attributes like productID, name,
quantity and price. For each order there will be orderID,
orderdate.
Draw the ER diagram of the system.
Steps to follow

• Find out the entities.


• Establish relationships.
• Add attributes to each entity
Indicators
• For Entity: Rectangle Shape.
• For Relationship: Diamond Shape.
• For Attribute: Oval Shape.

Entity Attribute

Relationship
Finding Entities
A courier company has a number of branches. Every branch offers
different products. Many employees and deliveryman are included
in every branches. Customers choose products and can make a
order for it to the employee. The employee accept order and
deliver the product via deliveryman to the customer. The company
needs to make a system for online ordering system. There will be
three typse of users (employee, customer, deliveryman). For
registration, each user should enter their name, address, phone
number. Employee and deliveryman should include their route
name of branch. For products there should have attributes like
productID, name, quantity and price. For each order there will be
orderID, orderdate.

Entities: Branches, Employees, Customers, Deliveryman, Order,


Products.
Finding Relationships
A courier company has a number of branches. Every branch
offers different products. Many employees and deliveryman are
included in every branches. Customers choose products and can
make a order for it to the employee. The employee accept order
and deliver the product via deliveryman to the customer. The
company needs to make a system for online ordering system.
There will be three typse of users (employee, customer,
deliveryman). For registration, each user should enter their
name, address, phone number. Employee and deliveryman
should include their name of branch. For products there should
have attributes like productID, name, quantity and price. For
each order there will be orderID, orderdate.

Relationships: offers, included, choose, make, accept, delivered


via, delivered to.
Entities
Branch
• Branches
• Employees
• Customers Employee Products
• Deliveryman
• Order Deliveryman
• Products

Order Customer
Entity and Relationships
Employee accept Order

includes send

Branch offers product make

includes Delivered choose


by

Deliveryman Delivered
Customer
to
Attributes
• Branch: branchID, branchName, location, contact.
• Employee: eID, eName, eContact, eAddress, eBranch.
• Deliveryman: dID, dName, dContact, dAddress, dBranch.
• Product: pID, pName, quantity, price.
• Customer: cName, cContact, address.
• Order: orderID, orderDate.
eName
ePhone eID orderID orderDate

eBranch Employee accept Order

includ send
es pID
branchID
pName
brach
Name Branch offers Product quantity

contact make
price

location
includ Delivered choose
es by

Delivered
Deliveryman Customer
dID to
dAddress
cName cAddress
dName
dContact
cContact
Thank You

You might also like