What database does this work on? I should have specified what database I am
using. I am developing for Oracle 8i.

Thanks,

Dave

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 10:42 AM
To: CF-Talk
Subject: Re: Randomizing Query Results


David Jones wrote:
> What is the best way to randomize the results of a CF query?

Offload it to the database:
SELECT          *
FROM            table
ORDER BY        Random()

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to