You are on page 1of 2

ER Diagram for Purchasing Database

COMM 335
CustNbr RequestNbr Date ItemNbr SuppNbr
Winter 2019 Term 1
m n m n
1 m Item Supplier
Customer places Request has supplies

Database Design: E-R Diagram Dept Filled? Description Name

Name Agent

Suggested Solutions to Anything missing? Anything wrong?


Purchasing Request Database Where do we keep the information about the “Quantity requested” for each item and
whether the request for an individual item can be satisfied?
Similarly, where do we keep the information about the “Quantity delivered/shipped”
by a supplier for each item ordered?

ER Diagram for Purchasing Database (con’td) ER Diagram for Purchasing Database (con’td)
Intersection
CustNbr RequestNbr ItemNbr CustNbr RequestNbr Table ItemNbr
Date Date

1 m m n 1 m 1 m n 1
Customer places Request has Item Customer places Request ItemReqd Item

Dept Filled? Description Dept Filled? QtyReqd Filled Description

Name Agent Name Agent


Resolve the M:N
Relationship

Where do we keep the information about the “Quantity requested” for each item and Where do we keep the information about the “Quantity requested” for each item and
whether the request for an individual item can be satisfied? whether the request for an individual item can be satisfied?
Access Relationship Page ER Diagram for Purchasing Database (con’td)

ItemNbr SuppNbr

m n
supplies Supplier
Item

Description Name

Resolve the M:N


Relationship

Where do we keep the information about the “Quantity delivered/shipped” by a


supplier for each item ordered?
To be continued …

ER Diagram for Purchasing Database (con’td) Access Relationship Page

Intersection
Table
ItemNbr SuppNbr

1 m n 1
Shipment
Item Supplier

QtyShipped Actual Price


Description Name

Where do we keep the information about the “Quantity delivered/shipped” by a


supplier for each item ordered?

You might also like