I have four tables the first is "Inventory Transactions" this is linked to three other tables via a left outer join.
I need the selling price held on the table "Sales Contract" in order to calculate the Sales value of the inventory transaction. The only common data is the Part Number. My problem is I have potentially several records in the "Sales Contract" table having the same part number. Hence I get potentially several detail lines, since the data is presented in a cross tab layout I can end up with double or treble the sales value (depending on the number of matches in the Sales Contract table).
Is there a way of linking tables so that only the first record matched is used?
Inventory Transaction {Left Outer} Sales Contract
{Left Outer} Item Master
{Left Outer} Item Routing
I multiply Quantity form the inventory transaction with selling price held in the Sales Contract table!
I need the selling price held on the table "Sales Contract" in order to calculate the Sales value of the inventory transaction. The only common data is the Part Number. My problem is I have potentially several records in the "Sales Contract" table having the same part number. Hence I get potentially several detail lines, since the data is presented in a cross tab layout I can end up with double or treble the sales value (depending on the number of matches in the Sales Contract table).
Is there a way of linking tables so that only the first record matched is used?
Inventory Transaction {Left Outer} Sales Contract
{Left Outer} Item Master
{Left Outer} Item Routing
I multiply Quantity form the inventory transaction with selling price held in the Sales Contract table!