Home » SQL & PL/SQL » SQL & PL/SQL » Keyword COMPUTE : how to remove -------- and ****** lines from my report????
Keyword COMPUTE : how to remove -------- and ****** lines from my report???? [message #2276] Wed, 03 July 2002 06:54 Go to next message
FASBENDER François Michel
Messages: 1
Registered: July 2002
Junior Member
Hello to all,
I have the foolowing :

.....
BREAK ON field1 SKIP 1
COMPUTE SUM LABEL '' OF field_qty ON field1
.....
SELECT field1, ....., field_qty FROM ....

The result of my SQL is :

field1  .....  field_qty
------        ---------
501120             10.0
                   10.0
                   20.0
                   30.0
******        ---------
                   70.0

501121             15.1
                   10.5
                   10.0
******        ---------
                   35.6

Is it possible to remove ****** and ------- lines from my report? I have not been find a solution yet.

Many thanks in advance for your reply.
Re: Keyword COMPUTE : how to remove -------- and ****** lines from my report???? [message #2286 is a reply to message #2276] Wed, 03 July 2002 11:44 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
i dont think is possble to remove '---' from the report. but you cannot use the break on ! which makes the report a bit ugly.
SQL> @33

    DEPTNO      EMPNO        SAL
---------- ---------- ----------
        10       7782       2450
        10       7839       5000
        10       7934       1300
                      ----------
                            8750
        20       7369        800
        20       7876       1100
        20       7902       3000
        20       7788       3000
        20       7566       2975
                      ----------
                           10875
        30       7499       1600
        30       7698       2850
        30       7654       1250
        30       7900        950
        30       7844       1500
        30       7521       1250
                      ----------
                            9400

14 rows selected.

SQL> get 33
  1  column dummy noprint
  2  break on dummy
  3  compute sum label 'sum' of sal on dummy
  4  select deptno dummy,deptno,empno,sal from emp
  5* order by dummy;
SQL> 
Re: Keyword COMPUTE : how to remove -------- and ****** lines from my report???? [message #2307 is a reply to message #2276] Thu, 04 July 2002 07:12 Go to previous message
FASBENDER François M.
Messages: 1
Registered: July 2002
Junior Member
Great! It works!
Many thanks.
Previous Topic: How do I create table by select data from another table which has an object assigned to it?
Next Topic: hot to select those authors who live in the same zip area
Goto Forum:
  


Current Time: Fri Apr 26 04:03:57 CDT 2024