home *** CD-ROM | disk | FTP | other *** search
- 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
- Organization: Rohm and Haas Company
- Date: Wed, 12 Aug 1992 11:50:52 EDT
- From: Randy Krail <RS0ORK@rohvm1.rohmhaas.com>
- Message-ID: <92225.115052RS0ORK@rohvm1.rohmhaas.com>
- Newsgroups: comp.databases.ingres
- Subject: Re: Naming conventions
- References: <1992Jul27.145402.11313@schaefer.math.wisc.edu>
- <1992Jul29.160529.1@gsbacd.uchicago.edu> <2792@perl-sun.dwrsun4.UUCP>
- Lines: 38
-
- In article <2792@perl-sun.dwrsun4.UUCP>, perl@dwrsun4.UUCP (Robert Perlberg)
- says:
- >
- >In article <1992Jul29.160529.1@gsbacd.uchicago.edu>, cs_mj@gsbacd.uchicago.edu
- >(Mark Jaeger) writes:
- >> ... Our table names are always
- >> singular, so that the name defines what one row from the table is, not
- >> the whole collection. For example, the table that holds persons is
- >> "gl_person", not "gl_persons".
- >
- >I've seen this convention used. I'm interested in knowing what the
- >rationale is behind it. It seems to me that using the plural is more
- >natural. In all or at least most cases where you use a table name you
- >are referring to the collection, such as in:
- >
- > select * from gl_persons;
- >
- >Under what circumstances does the singular make more sense, and why do
- >you consider it important enough to create what I consider to be an
- >uncomfortable grammatical form in the most common usages?
-
- We too use the "singular" naming convention. This decision was based
- on the following understanding:
-
- As with Entity Types within an Entity-Relationship Diagram, a table
- represents a class of data, not an instance of data.
-
- Naming a table STUDENT implies that each record would relate to one
- occurrence (or instance) of student. Something that could be mapped
- in the real-world to John Doe, student. In using the plural (STUDENTS)
- each record would relate to one instance of students. In this case,
- "students" would map in the real-world to occurrence of students such
- as Freshman, Engineering Majors.
-
- ----------------------------------------------------------------------
- Randolph S. Krail
- Database Analyst
- Rohm and Haas Company E-Mail: rskrail@rohmhaas.com (Internet)
-