in reply to Re^2: mysql sorting
in thread mysql sorting
In the OP's example, this would result in the following data that would be trivial to loop through and split on the separator chosen in your SQL:SELECT Group, GROUP_CONCAT(SomeData ORDER BY SomeData SEPARATOR ',') FROM table GROUP BY `Group`
-- Briangreen 3,9 orange 8 purple 4 red 1,5,6,7 yellow 2
|
---|