I have the following table in which I have two sales orders and each sales order has a different number of transactions.