Question:groups orders by CUSTOMER.LastName, CUSTOMER.FirstName
and INVOICE.InvoiceNumber in that order, and (3) sums and averages.
我的查询:
CREATE VIEW CustomerOrderHistoryView AS
SELECT INVOICENUMBER,FIRSTNAME,LASTNAME,PHONE,DATEIN,DATEOUT,SUBTOTAL,
EXTENDEDPRICE FROM CUSTOMERORDERSUMMARYVIEW
GROUP BY LASTNAME,FIRSTNAME,INVOICENUMBER;
但是我收到了一个错误。 不是GROUP BY表达式 为了遵循我的问题的要求,我应该改变什么?什么问题的意思是(3)总和和平均值?疑似问题不清楚