SQL query, group, random
Posted: Tue Mar 08, 2005 6:36 pm
Is it possible to write a query that returns records just by normal ORDER BY, but if the asked value is same between many records, it randomizes the order of these.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
ORDER BY Column_Name, RAND()