Solved

SQL*PLUS - Oracle 8i - Report Making fun

Posted on 2002-04-27
1
764 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

707 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