table: user
id name
-------------
1 john
2 paul
3 mattew
table: nickname
id user_id nickname
--------------------------
1 1 frog
2 1 cow
3 1 bull
4 2 cat
Result I want:
1 john frog cow bull
2 paul cat
3 mattew
How can I get this result?
Something like this should work:
Please Note: syntax for GROUP_CONCAT may not be perfect because I haven’t used it in a while