I can currently write a query that will display a list of items and their order like this:

1|B
1|C
2|B
3|A
3|B
3|C

I want to write the query so it displays the data like:

1|B,C
2|B
3|A,B,C

I'm having trouble wrapping my mind around it. Any hints?