You could also do: SELECT MAX(thedate) FROM yourtable
<!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, October 22, 2006 9:05 AM To: CF-Talk Subject: SQL Question Im a little burnt out.... need some help. If I query a table that tracks the number of times a book was checked out and returned. I want to get the most recent item in the table to find the current status of the book. So I can find out if it is checked in or out. How do I write the SQL to find just the highest date/time stamp for that book? Thansk! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:257739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

