Let's say I have a table:
i j --- a 1 a 2 a 3 a 4 b 5 b 6 b 7 b 8 b 9
Obvoiusly SELECT a, GROUP_CONCAT(b SEPARATOR ',') GROUP BY a
would give me
a 1,2,3,4 b 5,6,7,8,9
But what if I want to get only a LIMITED number of results, like 2, for example:
a 1,2 b 5,6
Any ideas?