690 likes | 834 Views
Problem 1, page 223. Problem 1, page 223. Customer. Problem 1, page 223. Customer CustomerNum RepNum. Problem 1, page 223. Customer CustomerNum RepNum. Rep RepNum LastName. Problem 1, page 223. Customer CustomerNum RepNum. Rep RepNum LastName.
E N D
Problem 1, page 223 Customer
Problem 1, page 223 Customer CustomerNum RepNum
Problem 1, page 223 Customer CustomerNum RepNum Rep RepNum LastName
Problem 1, page 223 Customer CustomerNum RepNum Rep RepNum LastName
Problem 1, page 223 Customer CustomerNum RepNum Rep RepNum LastName This is an example of a one to many relationship as follows: one customer can be served by ONE rep and one rep can serve MANY customers.
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum This is a many to many relationship: one customer can be connected to MANY reps and one rep can be assigned to MANY customer.
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum When a customer places an order the sales that gets the comission should be one of the collection of the sales reps that represents the customer.
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum Orders OrderNum OrderDate CustomerNum RepNum
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum Orders OrderNum OrderDate CustomerNum RepNum
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum Orders OrderNum OrderDate CustomerNum RepNum
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum PK Orders OrderNum OrderDate CustomerNum RepNum
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum PK Orders OrderNum OrderDate CustomerNum RepNum FK
Problem 1, page 223 Customer CustomerNum Rep RepNum LastName Assignments CustomerNum RepNum PK Orders OrderNum OrderDate CustomerNum RepNum FK
Problem 2, page 223 Customer CustomerNum
Problem 2, page 223 Customer CustomerNum Rep RepNum
Problem 2, page 223 Customer CustomerNum Rep RepNum Orders CustomerNum RepNum
Problem 2, page 223 Customer CustomerNum Rep RepNum Orders CustomerNum RepNum
Problem 2, page 223 Customer CustomerNum Rep RepNum PK Orders CustomerNum RepNum FK
Problem 2, page 223 Customer CustomerNum Rep RepNum PK Orders CustomerNum RepNum FK
Problem 2, page 223 Customer CustomerNum Rep RepNum PK PK Orders CustomerNum RepNum FK FK
Problem 3, page 223 Part PartNum Description Class Price
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price WarehouseNum
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price WarehouseNum
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price WarehouseNum PK FK
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price WarehouseNum But this would allow us to store each part in just one location.
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price Storage PartNum WarehouseNum NumberOfUnits
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price Storage PartNum WarehouseNum NumberOfUnits
Problem 3, page 223 Warehouse WarehouseNum WarehouseDescription Part PartNum Description Class Price Storage PartNum WarehouseNum NumberOfUnits
Problem 4, page 223 Territory TerritoryNum TerritoryName
Problem 4, page 223 Territory TerritoryNum TerritoryName Customer CustomerNum TerritoryNum
Problem 4, page 223 Territory TerritoryNum TerritoryName Rep RepNum TerritoryNum Customer CustomerNum TerritoryNum
Problem 4, page 223 Territory TerritoryNum TerritoryName Rep RepNum TerritoryNum But we need a tighter connection. Customer CustomerNum TerritoryNum
Problem 4, page 223 Territory TerritoryNum TerritoryName Rep RepNum Assignments RepNum CustomerNum TerritoryNum Customer CustomerNum
Problem 4, page 223 Territory TerritoryNum TerritoryName Rep RepNum Assignments RepNum CustomerNum TerritoryNum Customer CustomerNum
Problem 4, page 223 Territory TerritoryNum TerritoryName PK Rep RepNum PK Assignments RepNum CustomerNum TerritoryNum FK FK FK Customer CustomerNum PK
Problem 5, page 223 Territory TerritoryNum TerritoryName
Problem 5, page 223 Territory TerritoryNum TerritoryName Customer CustomerNum TerritoryNum
Problem 5, page 223 Rep RepNum TerritoryNum Territory TerritoryNum TerritoryName Customer CustomerNum TerritoryNum
Problem 5, page 223 Rep RepNum TerritoryNum Territory TerritoryNum TerritoryName Assignments RepNum CustomerNum Customer CustomerNum TerritoryNum
Problem 5, page 223 Rep RepNum TerritoryNum Territory TerritoryNum TerritoryName Assignments RepNum CustomerNum Customer CustomerNum TerritoryNum
Problem 1, page 224 Director DirectorNum DirectorName YearBorn YearDeceased