“You tried to execute a query that does not include the specified aggregate function”

后端 未结 3 421
春和景丽
春和景丽 2020-11-29 06:29
SELECT SUM(orders.quantity) AS num, fName, surname
FROM author
INNER JOIN book ON author.aID = book.authorID;

I keep getting the error message: \"y

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 07:22

    GROUP BY can be selected from Total row in query design view in MS Access.
    If Total row not shown in design view (as in my case). You can go to SQL View and add GROUP By fname etc. Then Total row will automatically show in design view.
    You have to select as Expression in this row for calculated fields.

提交回复
热议问题