Formatting Columns in both Static
and Dynamic Reports
Have you ever had to run a report in which the default
names of the columns were just so weird that there was no way a user could
decipher what that column heading meant? If you have, and if
you've looked at Oracles "SQL*Plus User Reference" (no technical info -
just how to use SQL*Plus) then you've probably seen the column
command. Oracle does a good job at documenting it - they just don't
play it up enough. Well, that's what I'm here for!!! So let's
look at an example:
This one produces the somewhat unintelligable output of ... TO_CHAR(SYSDATE,'MM/DD/YYYYHH24:MI:SS')
I imagine that this output looks exciting to the average
user. One way to get his/her attention is to dress up the SELECT
using a simple column formatting command such as ....
Date and Time
This looks good, but is rather run of the mill.
If you have to run the same SELECT twice, but you want the heading of the
column to change with the second run, then try the following example:
Time and Date - First Pass
Time and Date - Second Pass
This solution looks so much more appealing than having to retype the same SELECT just to give it a different title. Any other change to the title is possible here as well. Just type it in and let it execute!
Have a Oracle Question
Oracle Books
Oracle Application
Oracle Home
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|