G
Guest
I need to match different combinations from on table to a single line item on
another table.
The relevant fields are account number, date, identifier, and quantity.
Table 1 might look like this.
Account Date Identifier Quantity
123 10/01/2007 XYZ 150
123 10/02/2007 XYZ 200
123 10/02/2007 XYZ 150
123 10/03/2007 XYZ 100
Table 2 might look like this
Account Identifier Quantity
123 XYZ 500
I need the query to sum the first three, and match to the one item line on
Table 2. As you can see, I can't just sum by Account and Identifier. The
items always show up on different dates.
another table.
The relevant fields are account number, date, identifier, and quantity.
Table 1 might look like this.
Account Date Identifier Quantity
123 10/01/2007 XYZ 150
123 10/02/2007 XYZ 200
123 10/02/2007 XYZ 150
123 10/03/2007 XYZ 100
Table 2 might look like this
Account Identifier Quantity
123 XYZ 500
I need the query to sum the first three, and match to the one item line on
Table 2. As you can see, I can't just sum by Account and Identifier. The
items always show up on different dates.