Using the COUNT function in SQL

前端 未结 5 1043
猫巷女王i
猫巷女王i 2021-01-25 00:24

First and Foremost, this is part of an assignment.

I am trying to use the COUNT function as part of a query in relation to the Northwind database. The query should retur

5条回答
  •  天涯浪人
    2021-01-25 01:04

    When using aggregate functions like COUNT(), all columns have to be part of aggregate functions. The GROUP BY statement should solve your problem. http://www.w3schools.com/sql/sql_groupby.asp

提交回复
热议问题