Thanks Kris! That makes sense.
> -----Original Message----- > From: Kris Jones [mailto:[EMAIL PROTECTED] > Sent: Sunday, October 22, 2006 10:12 AM > To: CF-Talk > Subject: Re: SQL Question > > select top 1 * > from tablename > order by datefield desc > > > On 10/22/06, Chad Gray <[EMAIL PROTECTED]> wrote: > > 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:257703 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

