select SUM(item_store.quantity) - (select SUM(transaction_items_store.quantity) AS exp2 from transaction_items_store where transaction_items_store.item_no=item_store.item_no) as Q FROM item_store group by item_store.item_no
4 10 7 NULL NULL
select SUM(item_store.quantity) - (select IFNULL(SUM(transaction_items_store.quantity),0) AS exp2 from transaction_items_store where transaction_items_store.item_no=item_store.item_no) as Q FROM item_store group by item_store.item_no
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)