-3
select Products.prodname,
sum(billdetail.Qty) as qty,
BillDetail.rate,
sum(billdetail.amt) as Amt
from billdetail
inner join products on products.prodid = billdetail.prodid
inner join category on category.catid = products.catid
group by prodname, rate
where CatName = "Chicken";
這裏是組 SELECT列名(S) 的語法FROM table_name的 –
如果在問題中包含錯誤文本,它將幫助我們確定錯誤的原因。 –
歡迎來到Stack Overflow。我們將幫助您解決編程問題,但您首先希望自己動手,而您的問題不會顯示。這個問題可能會被刪除,因爲脫離主題或不清楚。請閱讀https://stackoverflow.com/help/how-to-ask以獲取更多信息 – Mikkel