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!

SQLPLUS Break Command

943841Sep 23 2013 — edited Sep 23 2013

Oracle version 11g

Windows XP

I am trying to create a sqlplus report on emp table on which i need subtotals and grand total breaking on "deptno". So I have used

BREAK ON DEPTNO SKIP 1

COMPUTE SUM OF SAL ON DEPTNO

COMPUTE SUM OF SAL ON REPORT

My requirement is I need an extra new line after every subtotal. Can you help me what command or setting to change.?

DEPTNO         ENAME               SAL

--------------        ----------------          -----------

10                    John                    1000

                       Anil                       2000

                                                  -----------

                                                   3000

<extra new line>

20                   Foney                   300

                                                 -----------

                                                  300

<extra new line>

                                                 ------------

                                                  3300

This post has been answered by dariyoosh on Sep 23 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2013
Added on Sep 23 2013
11 comments
909 views