2 Oct 2010 15:40
Re: Random sort with distinct
Dmitriy Igrishin <dmitigr <at> gmail.com>
2010-10-02 13:40:15 GMT
2010-10-02 13:40:15 GMT
Hey Ozer,
How about dynamic queries?
2010/10/2 Ozer, Pam <pozer <at> automotive.com>
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
--
// Dmitriy.
RSS Feed