2 Oct 2010 15:42
Re: Random sort with distinct
Lee Hachadoorian <lee.hachadoorian <at> gmail.com>
2010-10-02 13:42:29 GMT
2010-10-02 13:42:29 GMT
This runs fine on my 8.4 install. What version are you using and what
error message are you getting?
--Lee
On 10/01/2010 04:51 PM, Ozer, Pam wrote:
-- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center
--Lee
On 10/01/2010 04:51 PM, Ozer, Pam wrote:
I have the following query
Select Distinct VehicleMake, VehicleModel
From VehicleYearMakeModelTrim
Order by random()
Limit 10;
I don’t want to bring back the random number I just want the sort order to be random. How can I sort randomly? This query breaks because random() is not in the select.
Thanks
Pam
-- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center
RSS Feed