I'm trying to make Up-Sells list for my personal web shop but cannot figure it out. I have a lot of items in my database and I'm trying to sort them. I have unique ID's for categories and I need to paste every SKU which is under that category.
Input/Output
Input
SKU Category
123 1
124 1
234 2
235 2
Output SKU Category Up-Sell
123 1 123, 124
124 1 123, 124
234 2 234, 235
235 2 234, 235