我在下面有一個查詢,它將返回單個銷售記錄,其中包含針對特定產品SKU的每個訂單的金額。我將如何去總結總金額?該列是我需要總結的「extprice」。任何幫助,將不勝感激,謝謝...從查詢返回的總金額
select partno4pt,orders.orderdate,orders.processdate,orderdetails.qty,orderdetails.extprice
from orderdetails
inner join orders
on orderdetails.order_id = orders.order_id
where orderdate > '2009.01.17 09:00:00'
and partnumber like '%m9150%'
and orders.processdate is not null
格式事情花花公子 –
@JackM:如果你要問某人格式化他們的代碼,至少提供了一個鏈接到降價的參考,讓他們知道你在說什麼:HTTP://計算器.COM/editin g-help –