Solved

SQL*PLUS - Oracle 8i - Report Making fun

Posted on 2002-04-27
1
763 Views
Last Modified: 2007-12-19
I have following code:

set pagesize 60
set linesize 80

column today new_value _date noprint
select to_char(sysdate, 'fmMonth DD, YYYY') today
from dual;

column Member_Name format A12
column Volume format A7

ttitle center "Books Currently Checked Out"  skip 1 -
center "Today's Date: " _DATE skip 1 -
skip center "Page:" format 999 sql.pno skip 2

SELECT Borrows_Call_No AS Call_No, Borrows_Vol AS Volume, Due_Date, Fine_Amount, Member_Name
FROM Member, Borrows
WHERE Borrows.Borrows_Member_ID = Member.Member_ID AND Borrows.Checked_In='N'
ORDER BY Fine_Amount DESC;

which produces this output:

                         Books Currently Checked Out
                          Today's Date: April 27, 2002

                                    Page:   1





                           Books Currently Checked Out
                          Today's Date: April 27, 2002

                                    Page:   1

CALL_NO    VOLUME  DUE_DATE  FINE_AMOUNT MEMBER_NAME
---------- ------- --------- ----------- ------------

...

How can I have it just print out the title once?

Thanks!
0
Comment
Question by:Adam Leinss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
waynezhu earned 50 total points
ID: 6974433
Adding a TTITLE OFF as below:

set pagesize 60
set linesize 80

ttitle off             -- clear

column today new_value _date noprint
select to_char(sysdate, 'fmMonth DD, YYYY') today
from dual;
.
.
.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Require data to appear on a single line 2 80
DB migration from Mssql to 12c oracle , data not loading. 3 48
Fill Null values 5 36
oracle query 3 26
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  â€¦
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question