Randomly sum rows

前端 未结 2 985
梦毁少年i
梦毁少年i 2021-01-17 03:27

I would like to randomly insert in a new temp_table the records from the Initial Table below, grouping them by a new PO number (1234-1, 1234-2,etc..) where each group sum(TK

2条回答
  •  野的像风
    2021-01-17 04:10

    The logic of the 1234-1, 1234-2, etc is to break the records into groups that represent a carton. If the order has 100 line items, I may need n cartons (n groups) to pack all the items.

提交回复
热议问题