Duncan I Loxton wrote: > > I need to get one row and one row only from a sql table - cheesy > quotes for our corporate intranet.....
cflib is your friend http://www.cflib.org/udf.cfm?ID=524 This UDF works fabulously. QueryRandomRows(theQuery, NumberOfRows) Author: Shawn Seley and John King (Send Email) Library/Category: DataManipulationLib/Query Required CF Version: ColdFusion 5 Version: 1 Last Updated: July 10, 2002 Rating: Not Yet Rated Description Returns a query object with a specified number of random records from the passed query. Some code based on QuerySlice() by Kevin Bridges ([EMAIL PROTECTED]) Please note that results below will not be random due to caching at cflib.org. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192847 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

