I THINK mysql has something similar (if not exact) to the newID() function in SQL server that lets you order records pseudo-randomly. So either 4 selects (or unioned like Claude suggested) where you select the top 1 of each, ordered by newid()
If not, QoQ and CF's random functions could get you the same thing ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 2:27 PM To: CF-Talk Subject: RE: quick mysql 4.0.17 query question... Ah...that might work, thank you Claude. <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 1:20 PM To: CF-Talk Subject: Re: quick mysql 4.0.17 query question... >>Is it possible to do this in one query and if so how might I do that? I would try a UNION between 3 SELECTs, one for each possible option. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233294 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54