Question: Database lab activity Designing ERD Design Entity - Relationship Diagram ( ERD ) for a food company system. This company captures key members such as
Database lab activity
Designing ERD
Design EntityRelationship Diagram ERD for a food company system. This company captures key members such as products food items categories, suppliers, customers, orders, and order details, as well as their relationships.
The system keeps the following information:
Product Food Item ProductID ProductName, Description, Price, StockQuantity. A product belongs to one category and is supplied by one supplier.
Category CategoryID CategoryName, Description and category can have multiple products, but each product belongs to one category.
Supplier SupplierID SupplierName, ContactInfo, Address. A supplier can supply multiple products, but each product is supplied by one supplier.
Customer CustomerID FirstName, LastName, Email, Phone, Address. A customer can place multiple orders
Order OrderID OrderDate, TotalAmount, ShippingAddress, OrderStatus. An order is placed by one customer but can contain multiple products.
OrderDetails Associative Entity between Order and Product OrderDetailID Primary Key OrderID ProductID Quantity, PriceAtTimeOfOrder This resolves the manytomany relationship between orders and products by tracking which products are ordered and in what quantity.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
