I have a table with cols as follows
ID Unit location col1 col2 userID
1 A AA a a Lan1
1 A AA a a Lan2
1 C AA a a Lan3
2 A BB a a Lan1
i would like to have the data displayed as
1 A AA a a Lan1,Lan2
1 C AA a a Lan3
2 A BB a a Lan1
it will be a group by on ID, Unit and Location with Userid getting concatenated. Does anyone have any suggestion how to get the result displayed as above. any help will be greatly appreciated. TIA