Xref: utzoo comp.databases:4652 comp.lang.c:25128 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!rice!uw-beaver!zephyr.ens.tek.com!tektronix!sequent!jsc From: jsc@sequent.UUCP (J. Scott Carr) Newsgroups: comp.databases,comp.lang.c Subject: Re: How do you name table/structure elements? Message-ID: <27885@sequent.UUCP> Date: 17 Jan 90 01:35:37 GMT References: <1990Jan16.170217.16718@aqdata.uucp> Reply-To: jsc@crg4.UUCP (J. Scott Carr) Organization: Sequent Computer Systems, Inc Lines: 19 In article <1990Jan16.170217.16718@aqdata.uucp> sullivan@aqdata.uucp (Michael T. Sullivan) writes: >I can see arguments for both but I'd like to find out what the rest >of the world thinks about this. One reason is curiousity but another >is that our company is trying to come up with certain standards for >employees to follow and this may be one of them. Before making any >decisions we'd like to hear different viewpoints. Feel free to either >send me mail or debate on the net. Both will be helpful. Thank you. My preference is to prepend text that identifies the object the column belongs to. The intention is that the core of the field name represents the attribute, the prefix the object. This is most important with keys. For example, part number in a parts table and a orders table are the same attribute. Naming the columns PRT_PARTNO and ORD_PARTNO helps clarify complex selects and joins, as well as the data dictionary. -------- Scott Carr uunet!sequent!jsc Sequent Computer Systems (503) 526-5940