Thread: MySql Help
View Single Post
Old 07-22-2012, 11:53 AM  
seeme
Stephen
 
Industry Role:
Join Date: Jun 2011
Location: Europe
Posts: 840
Quote:
Originally Posted by kazymjir View Post
Code:
SELECT *
   FROM `items`
   GROUP BY `group`
   ORDER BY RAND();
Selects one random item from each group
When I refresh the query I still get the same item from each group... just that the final list of items is ordered randomly.
seeme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote