home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / ingres / 1120 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.2 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!news.ysu.edu!psuvm!cunyvm!rohvm1!rs0ork
  2. Organization: Rohm and Haas Company
  3. Date: Wed, 12 Aug 1992 11:50:52 EDT
  4. From: Randy Krail <RS0ORK@rohvm1.rohmhaas.com>
  5. Message-ID: <92225.115052RS0ORK@rohvm1.rohmhaas.com>
  6. Newsgroups: comp.databases.ingres
  7. Subject: Re: Naming conventions
  8. References: <1992Jul27.145402.11313@schaefer.math.wisc.edu>
  9.  <1992Jul29.160529.1@gsbacd.uchicago.edu> <2792@perl-sun.dwrsun4.UUCP>
  10. Lines: 38
  11.  
  12. In article <2792@perl-sun.dwrsun4.UUCP>, perl@dwrsun4.UUCP (Robert Perlberg)
  13. says:
  14. >
  15. >In article <1992Jul29.160529.1@gsbacd.uchicago.edu>, cs_mj@gsbacd.uchicago.edu
  16. >(Mark Jaeger) writes:
  17. >> ... Our table names are always
  18. >> singular, so that the name defines what one row from the table is, not
  19. >> the whole collection.  For example, the table that holds persons is
  20. >> "gl_person", not "gl_persons".
  21. >
  22. >I've seen this convention used.  I'm interested in knowing what the
  23. >rationale is behind it.  It seems to me that using the plural is more
  24. >natural.  In all or at least most cases where you use a table name you
  25. >are referring to the collection, such as in:
  26. >
  27. >        select * from gl_persons;
  28. >
  29. >Under what circumstances does the singular make more sense, and why do
  30. >you consider it important enough to create what I consider to be an
  31. >uncomfortable grammatical form in the most common usages?
  32.  
  33. We too use the "singular" naming convention.  This decision was based
  34. on the following understanding:
  35.  
  36. As with Entity Types within an Entity-Relationship Diagram, a table
  37. represents a class of data, not an instance of data.
  38.  
  39. Naming a table STUDENT implies that each record would relate to one
  40. occurrence (or instance) of student.  Something that could be mapped
  41. in the real-world to John Doe, student.  In using the plural (STUDENTS)
  42. each record would relate to one instance of students.  In this case,
  43. "students" would map in the real-world to occurrence of students such
  44. as Freshman, Engineering Majors.
  45.  
  46. ----------------------------------------------------------------------
  47. Randolph S. Krail
  48. Database Analyst
  49. Rohm and Haas Company          E-Mail: rskrail@rohmhaas.com (Internet)
  50.