Hi community,
let's say we have a online shop which is selling products which could appear in different variations - colors for example. So we have the fields productID and variation. Now I'd like to have a table showing the top10 sold productID, with all variations in the same row and their count.
productID count variation
-----------------------------------------------------
shirt1 532 blue (232)
red (300)
-----------------------------------------------------
jeans1 47 blue (35)
black (12)
-----------------------------------------------------
....
... and so on. The number behind the variation value is the count for this variation. The complete sorting of the list should be based on the count field so I get the top10 independent from the variation. I already tried to add the variation field to the top command which results in a different sorting-order when comparing with the top command for productID.
Is there a solution for the problem I'm facing?
Regards, Christian