I'm trying to compare the sales order and line item number between two lists in the data sets attached. I've tried both join and union and get errors. Can someone show me how to compare these two data sets for matches based on sales order/doc number and corresponding line item/sd item number (including columns for the sales and costs) and return a list of sales orders in both data sets?