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

后端 未结 3 423
春和景丽
春和景丽 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条回答
  •  甜味超标
    2020-11-29 07:31

    I had a similar problem in a MS-Access query, and I solved it by changing my equivalent fName to an "Expression" (as opposed to "Group By" or "Sum"). So long as all of my fields were "Expression", the Access query builder did not require any Group By clause at the end.enter image description here

提交回复
热议问题