I have a table containing item data that it its simplest form consists of an item number and a category. An item number can be in multiple categories but not all items are in every category:
Item category
1111 A
1111 B
1111 C
2222 A
3333 B
3333 C
I have to put this data into a feed for a 3rd party in the form of an single item number and its associated categories. Feed layout cannot be changed.
So for the above the feed would have to contain the following
1111,A,B,C
2222,A
3333,B,C
Does anyone know how to does this. I have spiralled into a group by, roll up, pivoting mess and could use some assistance.
thanks