0

GROUP BY clause need an aggregate ?

dave
  • 61
  • 6

1 Answers1

3

No, an aggregate query doesn't need a GROUP BY clause. But if no such clause is present the query only generates a single result row, aggregating the entire table.

It's sort of like there was an implicit GROUP BY 'nothing' clause inserted by the DBMS if you don't provide your own.

O. Jones
  • 103,626
  • 17
  • 118
  • 172