Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 26th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Database table design; link tables or rarely used foreign key?
  2. Customers:
  3.     PK
  4.     CustomerInfo
  5.  
  6. Printers:
  7.     PK
  8.     PrinterInfo
  9.     FK on Customer PK
  10.  
  11. ServiceContracts:
  12.     PK
  13.     FK on Customer
  14.  
  15. // This creates a composite PK for the Contract_Printers Table:
  16. Contract_Printers:
  17.     FK on Contract PK
  18.     FK on Printer PK