Solved

SQL*PLUS - Oracle 8i - Report Making fun

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

896 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now