Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 4
    but where do we put the 2 columns, how to aggregate based on 2/more columns is the question Commented Nov 17, 2017 at 22:13
  • 7
    This doesn't even remotely answer the question... The question here is how to acheive "chained grouping" of "subject" and "semester" at the same time, as explained in the given example... Commented May 20, 2019 at 10:22
  • 1
    The last example shows you how to put 2 columns using aggregate function. @ChaitanyaBapat Commented Jan 7, 2021 at 20:47
  • This doesn't work in Oracle if you have more select column that you don't wan't to group. Commented Aug 10, 2022 at 22:48
  • what if use GROUP BY but no aggregate function? Commented Nov 30, 2023 at 14:07