Hi,
In VB.NET
I have Two tables
Table1 = OrderNum, Stockcode, QtyNeeded And Date
Table2 = Stockcode, QtyProduced And Date
I need to get the sum of QtyNeeded and the sum of QtyProduced so that i can see the differance
They are grouped by Stockcode and Date
e.g.
Stockcode | QtyNeeded | QtyProduced | Date
Type1 ---- | ---- 20 ---- | ------ 10 ---- | 23/04/2007
Type2 ---- | ---- 15 ---- | ------ 15 ---- | 23/04/2007
I can get the SUMs indervidually but not together
Table1 ------------------------------ Table2
Stockcode | QtyNeeded | |Stockcode | QtyProduced
Type1 -----| --- 20 ----- | | Type1 --- |------- 5
Type2 -----| --- 10 ----- | | Type1 --- |------- 5
Type2 -----| ---- 5 ----- | | Type2 ---- | -------5
------------------------------| Type2 --- | -------5
------------------------------| Type2 --- | -------5
Any Ideas
Thanks
Peter