Chapter 9: Problem 21
Design a relational database containing information about parts, suppliers, and customers. Each part might be supplied by several suppliers and ordered by many customers. Each supplier might supply many parts and have many customers. Each customer might order many parts from many suppliers; in fact, the same part might be ordered from more than one supplier. (Avoid redundancies similar to those in Figure 9.4.)
Short Answer
Step by step solution
Determine the Entities
Define the Relationships
Create the Parts Table
Create the Suppliers Table
Create the Customers Table
Design Intersection Tables for Many-to-Many Relationships
Further Normalize the Data
Unlock Step-by-Step Solutions & Ace Your Exams!
-
Full Textbook Solutions
Get detailed explanations and key concepts
-
Unlimited Al creation
Al flashcards, explanations, exams and more...
-
Ads-free access
To over 500 millions flashcards
-
Money-back guarantee
We refund you if you fail your exam.
Over 30 million students worldwide already upgrade their learning with Vaia!
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
Entities and Relationships
Normalization
- Eliminating repeating groups and dependencies.
- Ensuring that every non-key attribute is fully functionally dependent on the primary key.
- Making sure there are no transitive dependencies.
Many-to-Many Relationships
- 'PartSupplier' might include 'PartID' and 'SupplierID' to represent parts supplied by each supplier.
- 'PartOrder' could incorporate 'PartID', 'SupplierID', and 'CustomerID' to establish which parts have been ordered by which customers from specific suppliers.
Database Tables
- Parts Table: This could contain PartID, PartName, Description, etc., with PartID serving as the primary key.
- Suppliers Table: Attributes may include SupplierID, SupplierName, Location, etc., and SupplierID as its primary key.
- Customers Table: Might feature CustomerID, CustomerName, ContactInfo, etc., with CustomerID as the primary key.