SELECT *, LEFT(booktitle,1) AS letter FROM bookinfo order by booktitle <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//--------->
-----Original Message----- From: Orlini, Robert [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 9:50 AM To: CF-Talk Subject: book title listing I have a menu list of books and would like to have it list each title alphabetically BUT only display the listing for one letter. For instance, the menu page would have A-Z listed and when a user clicks on A all the titles with A would list. I realize I have to add a where to the statement, but how do I isolate the first letter of the book title? Here is my query: <cfquery name="Getbook" datasource="printprices"> SELECT * FROM bookinfo order by booktitle </cfquery> Thanks! Robert HWW ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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/groups/CF-Talk/message.cfm/messageid:256107 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

