herbertioz
Registered User.
- Local time
- Today, 22:03
- Joined
- Nov 6, 2009
- Messages
- 66
I have two tables, table 1 with these field:
- ID (pk,auto)
- Orders
- Market
- ProductLocalName
Table 2:
- ID(pk,auto)
- Product
- GlobalMarket
- MarketArea
- PlannedOrders
My goal is to SUM the Orders in table 1 (local orders) and compare it with the field PlannedOrders in table 2 and get the difference and also show all the orders in Table 2 as well, not just the localorders with assigned orders. Can someone help me? I hope this is clear enough for you guys.
Its easy to sum the local orders, but not the rest.
- ID (pk,auto)
- Orders
- Market
- ProductLocalName
Table 2:
- ID(pk,auto)
- Product
- GlobalMarket
- MarketArea
- PlannedOrders
My goal is to SUM the Orders in table 1 (local orders) and compare it with the field PlannedOrders in table 2 and get the difference and also show all the orders in Table 2 as well, not just the localorders with assigned orders. Can someone help me? I hope this is clear enough for you guys.
Its easy to sum the local orders, but not the rest.