let's say i have got a table with data like this:

Name Hobbies
----------------------------
Sally Shopping
Sally Swimming
John Hiking
----------------------------

i want my results to appear on a jsp page like this:


Name Hobbies
-----------------------------------
Sally Shopping, Swimming
John Hiking


anyone knows what sql query should i use to achieve that?