Galapagos15
Board Regular
- Joined
- Sep 16, 2015
- Messages
- 100
I have two tables which contain a Receipt total for ID 0001.
Table 1 has a "Receipt Total" row of data for this ID of $10 and then another row with a total of $11.
Table 2 has a "Premium Receipt Total" row of data for ID 0001 for $5 and another row with a total of $6.
In my mind I should be able to run one Select query and match these two tables by the ID# and then pull in the ID (group it) and pull in the "Receipt Total of Table 1" (sum it) and pull in the "Premium Receipt Total of Table 2" (sum it) and should get the following results.
ID 0001
Receipt Total= $21 (instead I get $42)
Premium Receipt Total-$11 (instead I get $22)
It seems to me I shouldn't have to sum each of these tables in a separate query and then create a 3rd query that pulls in these two summed tabled queries to get the correct totals.
Thanks in advance!
Table 1 has a "Receipt Total" row of data for this ID of $10 and then another row with a total of $11.
Table 2 has a "Premium Receipt Total" row of data for ID 0001 for $5 and another row with a total of $6.
In my mind I should be able to run one Select query and match these two tables by the ID# and then pull in the ID (group it) and pull in the "Receipt Total of Table 1" (sum it) and pull in the "Premium Receipt Total of Table 2" (sum it) and should get the following results.
ID 0001
Receipt Total= $21 (instead I get $42)
Premium Receipt Total-$11 (instead I get $22)
It seems to me I shouldn't have to sum each of these tables in a separate query and then create a 3rd query that pulls in these two summed tabled queries to get the correct totals.
Thanks in advance!