如何從兩個表中獲得總和?如何從該表中獲得總和?
res_transactions
TRANS_ADD
查詢:
select
tranid, Qty, Price
from
res_transactions
where
order_no = '16104'
and tranid = '506060'
order by
tranid asc
select
FTRN, Qty, Price
from
TRANS_ADD
where
FTRN = '506060'
請參考附件快照更多信息
的例外輸出
Qty * Price
總價應該是:13.6