S
SirPoonga
I am trying to find some sales statistics.
I have part numbers which consist of componants.
Per each order, a part may have different componant parts.
Such as for one order you may see these relationships (quantity in
parens)
order id 1
123456-7890
4332 (5)
5443 (2)
5253 (3)
order id 2
123456-7890
4332 (2)
5443 (3)
5253 (2)
order id 3
123456-7890
4332 (2)
5443 (2)
5243 (5)
2457 (5)
order id 4
523624-1636
8926 (2)
5683 (2)
4567 (5)
4553 (5)
So you get these combinations being sold. I need to find the top 100
combinations sold.
The table that had the part to componant relationship will contain an
ID_ORD, ID_ITEM, ID_ITEM_COMP, QTY for the order id, item number,
componant number, and quantity of the componant.
I have part numbers which consist of componants.
Per each order, a part may have different componant parts.
Such as for one order you may see these relationships (quantity in
parens)
order id 1
123456-7890
4332 (5)
5443 (2)
5253 (3)
order id 2
123456-7890
4332 (2)
5443 (3)
5253 (2)
order id 3
123456-7890
4332 (2)
5443 (2)
5243 (5)
2457 (5)
order id 4
523624-1636
8926 (2)
5683 (2)
4567 (5)
4553 (5)
So you get these combinations being sold. I need to find the top 100
combinations sold.
The table that had the part to componant relationship will contain an
ID_ORD, ID_ITEM, ID_ITEM_COMP, QTY for the order id, item number,
componant number, and quantity of the componant.