I hope someone can point me in the right direction. Not really sure what sort of function I need.
I have a table with order numbers and po numbers. Some of the order numbers can be matched to one or multiple po numbers. I am trying to group orders with the same Order number and po number to the one order number, like below. Any idea on my best route to accomplish this?
Thanks in advance.
OrderNo PO New OrderNo
12345 PO127 12345-1
12345 PO127 12345-1
12345 PO136 12345-2
67543 PO334 67543-1
19221 PO2345 19221-1
19221 PO2345 19221-1
19221 PO3456 19331-2
I have a table with order numbers and po numbers. Some of the order numbers can be matched to one or multiple po numbers. I am trying to group orders with the same Order number and po number to the one order number, like below. Any idea on my best route to accomplish this?
Thanks in advance.
OrderNo PO New OrderNo
12345 PO127 12345-1
12345 PO127 12345-1
12345 PO136 12345-2
67543 PO334 67543-1
19221 PO2345 19221-1
19221 PO2345 19221-1
19221 PO3456 19331-2