Skip to Main Content

APEX

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!

Is there any way to use Control Break in a SQL Query

DeepakJNov 7 2012 — edited Nov 7 2012
Hi,

Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
Is there any way to modify the SQL query.

SQL
select dept, loc, count(*)
  from dept
group by dept, loc
Output-1
  Dept      Loc       Count(*)
  10         AA        1
  10         BB        2
  10         CC        2
  20         AA        2
  20         BB        2
Output-2
  Dept      Loc       Count(*)
  10         AA        1
             BB        2
             CC        2
  20         AA        2
             BB        2
Thanks,
Deepak
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2012
Added on Nov 7 2012
1 comment
2,471 views