Just the first and last? you chould do it in sql
select TOP 1 * from whatever order by x select TOP 1 * from whatever order by x desc WG > -----Original Message----- > From: Thane Sherrington [mailto:[EMAIL PROTECTED]] > Sent: 21 January 2003 16:01 > To: CF-Talk > Subject: Selecting First/Last Record in query > > > How to I get the first or last record in a query? > > T > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

