Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Other columns with group by

user12050217Feb 5 2010 — edited Feb 5 2010
Hi,

Using oracle 10g on windows:

I want to get all the columns of scott.emp table group by deptno.

Because if i gives :
select * from emp group by detpno; then its gives me ORA-00979: not a GROUP BY expression

In addition to this please tell me how do i get if i wish to group by deptno,job.

Thanks in advance.
This post has been answered by 751683 on Feb 5 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2010
Added on Feb 5 2010
12 comments
8,829 views