ZmrAbdulla
Technical User
I have a Union Query need to pick fields from a table and a query.
tblBalanceQty is having single entry for each item
tblPurchaseCurrent is having multiple entry.
so far I have this sql with me. It groups by table & Query separate.
Is that possible to change the SQL to group it by item and sum by quantity?
Thanks for any help
I will come back tomorrow...
________________________________________________________
Zameer Abdulla
Help to find Missing people
You may be the boss' pet; but you are still an animal
tblBalanceQty is having single entry for each item
tblPurchaseCurrent is having multiple entry.
so far I have this sql with me. It groups by table & Query separate.
Code:
SELECT tblBalanceQty.ItemName, tblBalanceQty.BalQty
FROM tblBalanceQty
UNION SELECT tblPurchaseCurrent.ItemName, Sum(tblPurchaseCurrent.Units) AS BalQty
FROM tblPurchaseCurrent
GROUP BY ItemName;
Thanks for any help
I will come back tomorrow...
________________________________________________________
Zameer Abdulla
Help to find Missing people
You may be the boss' pet; but you are still an animal