You’ll need to create and select proper variation first. Then select the wrong variation SKU to merge. Even you do it in wrong order, all data including transactions, quantities, lookups, will be merged. You can still change the SKU later. Just pay attention to the message on the screen.