Is it possible to use Aggregate function in a Select statment without using Group By clause?

前端 未结 7 1506
-上瘾入骨i
-上瘾入骨i 2020-12-14 18:04

So far I have written Aggregate function followed by Group By clause to find the values based on SUM, AVG and other Aggregate functions. I have a bit confusion in the Group

7条回答
  •  旧巷少年郎
    2020-12-14 18:44

    You must group by columns that do not have aggregate functions on them.

    You may avoid a group by clause if all columns selected have aggregate functions applied.

提交回复
热议问题