Uh oh, a DB schema design argument brewing... :-)
"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Nick de Voil <[EMAIL PROTECTED]> To: CF-Talk <[email protected]> Sent: Tue Jul 11 17:14:21 2006 Subject: Re: Select * in SQL > Heres a real world scenario I've come across: > > Code throughout the app is using data returned from a query that has > select *, and pulls data from more than one table. > Someone adds a column to one of the tables in the query that has the > same name as a column in another of the tables in the query. > > CF now returns a query with 2 columns named the same and your data is > funked up all over the site because using query.columnname is > referencing the wrong column. Some people disagree with this, but I recommend using a naming convention that makes this impossible. In other words, one where the table name can be inferred from the column name. Nick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246134 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

