Programming Assignment Unit 2
Programming Assignment Unit 2
that sells a variety of products online. The company wants to enhance its database
system to better manage its inventory, orders, and customers.
1. Considering the four entities namely Product, Customer, Order, and Inventory.
Define the relationships between these entities and identify key attributes for
each entity.
2. Translate the above four identified entities and attributes into tables with
appropriate primary and foreign keys.
3. Create an Entity-Relationship (ER) diagram that visually represents the
structure of the e-commerce company's database system. Include all entities,
relationships, attributes, and keys identified in parts (a) and (b). Clearly
indicate cardinality and participation constraints. Ensure the ER diagram is
properly labelled and easy to understand.
4. Explain two differences between conceptual and physical design in this
scenario, highlighting their respective roles in database development and
implementation.
Reference:
Data Modeling: Conceptual vs Logical vs Physical Data Model. (n.d.). Online.visual-
Paradigm.com. https://online.visual-paradigm.com/knowledge/visual-
modeling/conceptual-vs-logical-vs-physical-data-model