Thread: MySql Help
View Single Post
Old 07-22-2012, 11:18 AM  
kazymjir
Confirmed User
 
kazymjir's Avatar
 
Industry Role:
Join Date: Oct 2011
Location: Munich
Posts: 411
Code:
SELECT *
   FROM `items`
   GROUP BY `group`
   ORDER BY RAND();
Selects one random item from each group
__________________
http://kazymjir.com/
kazymjir is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote