Simple PL/SQL Report - Using Break on and Compute Sum - Not So Simple

Good morning, All:
I have a simple pl/sql report that is not so simple. Basic on the code below, would like to add a blank line/row after the resulting "sum" row to make it easier to read. Any and all help would be appreciated.
Thank you.
Preston@Large
Code:
=======================
BREAK ON ALM_OG_CAMPAIGN_CODE
COMPUTE SUM OF ALM_OG_AMOUNT ON ALM_OG_CAMPAIGN_CODE
set linesize 1024
set pagesize 60
set newpage 0
set serveroutput on
SPOOL &so_outfile;
ttitle center 'Wayne State University' skip 1 Left 'WSU Online Giving Essentials Report' skip 2
select TO_CHAR(sysdate, 'mm/dd/yyyy hh:mm AM') "Report Date" from dual;
CLEAR COLUMNS
column ALM_OG_ACCI_CODE heading "ACCI|CODE" format a10
column ALM_OG_AMOUNT heading "AMOUNT|DONATED" format $999,999,999.99
column ALM_OG_CAMPAIGN_CODE heading "CAMPAIGN|CODE" format a14
select
ALM_OG_CAMPAIGN_CODE,
ALM_OG_ACCI_CODE,
ALM_OG_AMOUNT
From WSUALUMNI.WSU_ONLINE_GIVING_TABLE
ORDER BY ALM_OG_CAMPAIGN_CODE;
CLEAR COLUMNS
spool off
Output:
WSU Online Giving Essentials Report
Report Date
======================
06/05/2009 10:06 AM
1 row selected.
Wayne State University
WSU Online Giving Essentials Report
CAMPAIGN ACCI AMOUNT
CODE CODE DONATED
====== ======== ==========
sum $560.00
NUR 444814 $10.00
***** =======
sum $10.00
PHS 445216 $10.00
***** =======
sum $10.00
PRES 445211 $450.00
445211 $60.00
445211 $250.00
***** =======
sum $760.00
SBA 444216 $10.00
***** =======
sum $10.00
SSW 444469 $10.00
***** =======
sum $10.00

Prestone,
Welcome to the Forum!
I have used skip 2 lines you can use 1
SQL> break on job report skip 2
SQL> compute sum of sal on job report
SQL> select job , sal from emp order by job ;
JOB              SAL
ANALYST         3000
                3000
sum             6000
CLERK           1300
                 950
                 800
                1100
sum             4150
MANAGER         2850
                2975
                2450
sum             8275
PRESIDENT       5000
sum             5000
SALESMAN        1500
                1250
                1250
                1600
sum             5600
14 rows selected.READ
Quick SQL*Plus Guide
http://download.oracle.com/docs/cd/B14117_01/server.101/b12171/toc.htm
SQL*Plus Reference
http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/toc.htm
SS

Similar Messages

  • Omit the final SUM row in a report using breaks

    We have a report using breaking whereby it is broken for current day, week to date and month to date. We want to use the column SUM feature so that we have a count of all records for the day, week to date and month to date.
    This works fine, however we also get a final sum row on the bottom of the report which is a sum of the month, week and day count. This is meaningless as the month includes the week which in turn includes the day - all it gives is a useless large number! :)
    Is there a way to stop this final column being displayed?
    Thanks in advance

    I have managed to remove the last row in a table using the following code:
    <script type="text/javascript">
    $(document).ready(function() {
       $("#JK_TEST .t7standard tr:last").remove();
    </script>However, the report uses a bottom border implemented using a <TR> so I actually need to remove the second to last row. I have tried to work out how to do this but am still trying!!! Any suggestions?
    EDIT::
    DONE IT!!! :D:D :D
    Cheers for the help!
    <script type="text/javascript">
    $(document).ready(function() {
       $("#JK_TEST .t7standard tr:last").prev($('<TR>')).remove();
    </script>Cheers!
    Edited by: /dev/null on Mar 24, 2009 4:49 PM

  • Webi report using openDocument URL,the window does not close..

    Hello,
    While viewing a Web intelligence report using openDocument URL, the window does not close after clicking on Document -> Close option, and the report remains open.
    And if I close the browser, the session of the user in InfoVierw remains opened
    Thanks
    Environment
    Firefox/3.6.15
    Internet Explorer 8
    BusinessObjects Enterprise XI 3.1
    SAP Integratio KIT XI 3.1
    SAP BW 7.02

    Please check SAP note 1512960  and SAP note 1384496.
    http://service.sap.com/notes
    This behaviour is by design.
    Regards,
    Stratos

  • When i try to preview a song using my iphone and computer, it just loads quickly and there is no sound.

    Ive been trying to preview songs on itunes, using my iphone and computer. Typically when previewing a song, it loads and its a blue color and it will play. Now when i try to preview, it stays black, and loads super fast and theres no sound. And I seem to be getting different prices on albums every time i click on one. Its just being really weird.
    any tips or tricks?? ive tried resetting my phone and everything else. nothing is working.and i can play all the music on my phone with no problem. i just cant preview anything in itunes.

    The number of devices authorized on an account and the number that an iPhone can sync to are two different things. You can now authorize up to 5 computers or 10 devices to play your content, but still an iPhone, iPad or iPod Touch can only be tied to one computer at a time. You can copy content from other computers to the computer used for syncing, and get it on the iPhone that way.
    Connect the phone to that computer, whichever you want to be the "master" of the iPhone. Click on its name in iTunes. On the right there is a Summary screen. Scroll down it and you will see several checkboxes. One of them is "Manually manage music and videos". If this is checked you must drag content from iTunes to the iPhone. If you have a large library, however, this can be cumbersome.
    The alternative is to leave this box unchecked, and instead click on the "Music" tab when the phone is connected. You can then just check the content you want on the phone, by artist, genre, title, playlist, etc. After checking you click the "Update" or "Sync" button and everything you have checked syncs automatically.

  • I am using laptop hitting and slow system not working

    i am using laptop hitting and slow system not working and very late opan file browser every think . plez help me

    Hi,
    Shut down the notebook.  Tap away at the esc key as you start the notebook to enter the Start-up Menu.  Select the Bios option ( usually f10 ) and under the Advanced or Diagnostic tab you should find the facility to run tests on both the Hard Drive and Memory.  Post back with the details of any error messages.
    Note:  If the option to run these tests is not available in the Bios Menu, use the f2 diagnostic menu instead.
    Can you also post back with the following details.
    1.  The full Model No. and Product No. of your notebook - see Here for a guide on locating this information.
    2.  The full version of the operating system you are using ( ie Windows 7 64bit ).
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I recently purchased a used ibook g4 and want to update to itunes 10.2. It tells me i need mac os 10.5 to do so. Today is the first day I have ever used a mac and I am not well versed on computers to begin with. What do I need to do?

    I recently purchased a used ibook g4 and i want to update to itunes 10.2. It tells me that I need to update to mac os 10.5.  Today is the fist time that I have ever used a mac and I am not very well versed on computers to begin with. From what I gather I need to purchase the mac os 10.5 but there are a lot of different options and I dont know what I need to do. Can somebody point me in the right direction?  I dont want to spend too much money because i just want my ipod touch to be compatible with my ibook. thank you

    Hi
    Your question is more suitable for the 10.4's General Forum rather than 10.4 OSX Server. Post here instead:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.4_tiger?categoryID=1 77
    You'll have more of a chance of someone responding.
    HTH?
    Tony

  • I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    I just downloaded a few ITunes Apps to my PC using windows 8 and they will not work.  Suggestions?  Thank you.

    The apps can only be run on an iOS device.   They will not run on your PC.

  • When should I use static variable and when should not? Java essential

    When should I use static variable and when should not? Java essential

    Static => same value for all instances of the class.
    Non-static => each instance can have its own value.
    Which you need in which circumstances is completely up to you.

  • The recipient cant see "middle of reply or typing" bubble in imessage. Could it be that I am using iOS 8 and they are not?

    The recipient cant see "middle of reply or typing" bubble in imessage. Could it be that I am using iOS 8 and they are not? Has any of your friends pose this as a minor problem? Is there a setting that I didn't enable?

    ''rojere [[#question-1055991|said]]''
    <blockquote>
    i try to keep my thumb palms off the mouse pad when i am typing but every now and then my screen resizes larger or smaller until i take my left palm off the keyboard base its only when my left palm is resting on the base next to the touch pad. i type pretty fast so it gets annoying and yes it also jumps screens or reverts back to previous message and i have to choose ctrl z to undo and get back to my message i was typing... it also switches tabs on me as well... not sure why my palm being on the left of the keypad on the base should effect anything but it does after a while. and i have to stop what i am doing...and go to the firefox menu and change the screen size back down to 100% sometimes it goes up to 200-300 other times it goes down to 70-80% i find it annoying i i wish there was a way to turn off the screen resize in the setup panel. if its just left to be 100% i am happy with that... i don't need it to be bigger or smaller... there should be a way to LOCK it down... i understand that there are people out there with eye problems and needs to have the screen size increase using the + or - but there should be a lock so it just stays no matter what is happening on my keypad or touch pad or base of the pad... that screen size will not increase or decrease. unless i turn off the lock... perhaps this is something they can implement in the next version or do a quick update of the browser
    </blockquote>
    sorry that is all greek to me thanks for attempting to explain what you were trying to explain sorry i just not tech person to be able to understand or where to begin ... have good day and thanks for again trying

  • My document.numbers can not be opened how can i recover the version from yesterday i was not using time machine and it was not in icloud. is there an app i can buy that might help

    my document.numbers can not be opened how can i recover the version from yesterday? i was not using time machine and it was not in icloud. is there an app i can buy that might help

    Thanks Andy,
    I wish I could have told my sister about this as she could not open my homepage back before my new iWeb site. She now can open my site without the yet in case denial window does appear = I thank you.
    I think my iWeb site works as Noone has said otherwise from any platform etc...
    Alex L
    I do agree that should not have to be a consideration for any users so i agree that it would be great if Apple could allow simplicity to run seemlessly.
    I have had this problem since Homepage, and here is
    what has worked for me. I send out the link, and
    then for PC users I send the link with "<" after the address (without quotation
    marks. e.g., <http://site.com>).
    I also put a note that if that doesn't work, to just
    copy and paste the link into a browser. With that I
    have only had 1 person say they still can't open.
    Everyone else gets it to work.
    It's a lot to do and seems like a hassle, but you get
    used to it.
    Hope this helps!
    Andy Martini
    PS - APPLE! When are you going to fix this??! It
    seems like such a small thing yet you guys have been
    stumped for YEARS on this!

  • TS1368 I am using iPad 3 and I can not connect to iTunes Store,if I want to download it say you can not connect

    My question has not be answers yet,I am using iPad 3 and I can not get to connect to iTunes Store to download anything.

    The iPad Screen is almost square, HD TVs are rectangular so will never be full screen.  When watching movies, the movies native aspect ratio will be used rather than the iPads screen aspect ratio so will look full screen if the movie is full screen, but most likely will be seen in wide screen letter box format. with black bars across the top and bottom as that what most movies from iTunes are in, format wise

  • Hello, I'm using Mountain Lion and mail does not leave the mails on the server, either on iCloud nor on other suppliers (orange). They are both using iMap protocol... Any place where I could change this ? Thanks for any hall; Christian

    Hello, I'm using Mountain Lion and mail does not leave the mails on the server, either on iCloud nor on other suppliers (orange). They are both using iMap protocol... Any place where I could change this ? Thanks for any hall; Christian

    Under what circumstances does mail "not leave the mails on the server"?
    If you mean that you delete them (or move them out of the inbox) on one device and then find them not in the inbox on the server when you look from another device, that's how IMAP is supposed to work. (Note that the deletion or moving might be the result of rules you have set up in Mail.)
    If you mean something else, please explain your issue in more detail.

  • I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

    I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

    I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

  • HP DJ4645 scanner does not see Mac OS 10 Maverick and computer does not see scanner

    HP DJ4645 scanner does not see Mac OS 10 Maverick and computer does not see scanner.
    I installed drivers and software from the HP website. Printer works fine but scaner does not work over WiFi. I did not try over USB because printer and computer are not in same room.

    Hi @mamedina ,
    I see that you are not able to scan over the wireless network. I would like to help you resolve this issue.
    Check the driver name that is installed for the printer. Make sure it shows just the printer's name.
    Click the Apple menu and then click System Preferences. Click Printers & Scanners, highlight the printer name on the left side and on the right side of the screen it should show the printer's name. (Deskjet 4645)
    If the full printer name isn't listed correctly, delete it and add the printer name back in from the list. Click the - sign to delete the driver and then click the + sign to add the driver, might have to click the drop down to select the printer's name to add it in.
    I have provided a document to make sure the Scan to Computer is enabled. You will have to select 10.8, then Network Connection. A 'No Computer Detected' or 'Connection Error' Message Displays When Scanning for HP Officejet 4610 ...
    If you are still not able to scan, then I would connect the printer to the computer by a USB cable to see if it is a network issue or  the scan port might be blocked on the router. Unfortunately the printer isn't accessible in the same room, but this will rule out a software issue or a network issue. You can contact the router company to check and open these ports 9220/9500/427 on the router for scanning.
    Please let me know the outcome.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • APEX report with Break columns and BI Publisher

    I am having an issue with APEX and using column breaks when printing to BI publisher.. It seems that when you write an APEX report that breaks on the 1st or 1st and 2nd columns, the grouping shows nicely in APEX, but when BI Publisher gets the XML data, and you do the same grouping using an RTF file, there is a group of rows with NO grouping info that occurs at the top of the report, then each group you expect has just ONE row..
    (Just giving this a bump to see anyone has an idea here..)
    Any suggestions?
    Thank you,
    Tony Miller
    Message was edited by:
    Tony Miller

    WITH clause or Subquery Factoring allows the set of data to be reused multiple times within the SQL. Oracle will usually materialize the data into a temporary table (you will see it if you take an explain plan of the SQL).
    I would be surprised if it was the actual WITH clause that was causing the performance issue, however you can test this by turning the WITH clause feature off. Go to the Physical model, right mouse click on your Database > Properties > Features Tab, scroll down to WITH_CLAUSE_SUPPORTED and switch it off.
    I'd be interested to know if you do see actual improvement.
    Good Luck.

Maybe you are looking for