Give an example of implementing Physical Database Design based on the ERD above, including:
a. Database Definition Language (Create Table) for all tables
b. Derived Attributes
c. General Constraints
Customers
Sales
CustomerNo (PK)
SalesRepNo (PK)
CustomerName
CustomerNo (FK)
PhoneNo
SalesRepName
Email
Purchase
PurchaseDetail
Stores
PurchaseID (PK)
Purchase
StoreID (PK)
CustomerNo (FK)
DetailID (PK)
Store
DateItemName
Purchase (FK)
Location
SizeQuantity
ItemID (FK)
Quantity
Items
Inventory
Warehoused (FK)
ItemID (FK)
CostOfUnit
Warehouse
ItemID (PK)
Warehoused (FK)
Stored (FK)
WarehouseAddress
Price
WarehouseCity
Category
UnitOnHand