Here's a little bit better formatting for reference:ordernumber item location stagecompleteorder1 item1 location1 0order1 item2 location1 0order2 item1 location2 0order2 item2 location2 0order2 item3 NULL 0order2 item4 NULL 0order3 item1 location3 0order3 item2 location3 0order3 item3 location3 0
Want the update statement to make it look like this:ordernumber item location stagecompleteorder1 item1 location1 1order1 item2 location1 1order2 item1 location2 0order2 item2 location2 0order2 item3 NULL 0order2 item4 NULL 0order3 item1 location3 1order3 item2 location3 1order3 item3 location3 1