home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / theory / 677 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!usc!cs.utexas.edu!uwm.edu!ogicse!news.u.washington.edu!byron.u.washington.edu!sandahl
  2. From: sandahl@byron.u.washington.edu (Bonnie Sandahl)
  3. Newsgroups: comp.databases.theory
  4. Subject: - Normalization - Naming Conventions Question -
  5. Message-ID: <1iv0tmINNafn@shelley.u.washington.edu>
  6. Date: 12 Jan 93 17:59:18 GMT
  7. Article-I.D.: shelley.1iv0tmINNafn
  8. Reply-To: sandahl@u.washington.edu
  9. Distribution: world
  10. Organization: University of Washington, Seattle
  11. Lines: 17
  12. NNTP-Posting-Host: byron.u.washington.edu
  13.  
  14.  
  15. I have a question involving database normalization.   Let's say you create a 
  16. CUSTOMER   table for Accounts Receivable with CUSTOMER-NO as the 
  17. primary key.  Let's go on and say that you have a VENDOR table for Accounts 
  18. Payable with VENDOR-NO as the primary key.
  19.  
  20. Suppose you have a high percentage of customers that could also be vendors 
  21. and you   didn't wish to keep separate tables. You decided to create a table 
  22. called CUSTVEND with primary key CUSTVEND-NO that would have all entities 
  23. that could be customers or vendors.
  24.  
  25. In the Accounts Receivable system when you set up an INVOICE table, would 
  26. you call the  key attribute CUSTVEND-NO or CUSTOMER-NO?  Similarly, in the 
  27. Accounts Payable system   when you set up a PAYABLE table would you call 
  28. the key attribute CUSTVEND-NO or   VENDOR-NO?
  29.  
  30. Thanks - sandahl@byron.u.washington.edu
  31.