GROUP BY without aggregate function

后端 未结 9 1024
孤独总比滥情好
孤独总比滥情好 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 12:12

    As an addition

    basically the number of columns have to be equal to the number of columns in the GROUP BY clause

    is not a correct statement.

    • Any attribute which is not a part of GROUP BY clause can not be used for selection
    • Any attribute which is a part of GROUP BY clause can be used for selection but not mandatory.

提交回复
热议问题