GROUP BY without aggregate function

后端 未结 9 1007
孤独总比滥情好
孤独总比滥情好 2020-11-27 11:28

I am trying to understand GROUP BY (new to oracle dbms) without aggregate function.
How does it operate?
Here is what i have tried.

EMP table on

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 11:58

    If you have some column in SELECT clause , how will it select it if there is several rows ? so yes , every column in SELECT clause should be in GROUP BY clause also , you can use aggregate functions in SELECT ...

    you can have column in GROUP BY clause which is not in SELECT clause , but not otherwise

提交回复
热议问题