Add Total running to the report of the Group

Hello

I have the following sql for a report (date_booked is of type varchar)

SELECT TO_CHAR (TO_DATE(date_booked,'dd.mm.yyyy'), 'MM') month_booked, sum (costs)

Of ang_project_costs

TO_CHAR Group (TO_DATE (date_booked, 'dd.mm.yyyy'), 'MM')

order by to_number (TO_CHAR (TO_DATE (date_booked, 'dd.mm.yyyy'), 'MM'))

I want to display a running total for each month

Can you please indicate

Concerning

Gus

Hello

Did you mean something like below.

SELECT month_booked,
       total,
       SUM (total) OVER (ORDER BY ROWNUM ASC) Running_Total
  FROM (WITH ang_project_costs
             AS (SELECT SYSDATE AS date_booked, 10 AS costs FROM DUAL
                 UNION ALL
                 SELECT SYSDATE - 30 AS date_booked, 20 AS costs FROM DUAL
                 UNION ALL
                 SELECT SYSDATE - 60 AS date_booked, 40 AS costs FROM DUAL)
          SELECT TO_CHAR (TO_DATE (date_booked, 'dd.mm.yyyy'), 'MM')
                    month_booked,
                 SUM (costs) total
            FROM ang_project_costs
        GROUP BY TO_CHAR (TO_DATE (date_booked, 'dd.mm.yyyy'), 'MM')
        ORDER BY TO_NUMBER (
                    TO_CHAR (TO_DATE (date_booked, 'dd.mm.yyyy'), 'MM')))

Kind regards

Cool

Tags: Database

Similar Questions

  • Add NT user to the Group Admin Local (virtual machine in a field)

    Are there any custom script that we could write to add NT user a local administrator of a virtual computer that is in a domain as well? Any ideas? Thank you.

    In what context have you used it? This code example is part of a larger solution, with specific steps...

    in fact, the only command that must be executed is the net localgroup... order... the code a little older a workflow where I picked up the text in a reg temp file and then imported the reg file... the reg file create a runOnce registry who was apparently alone running if you connect to the new virtual machine until a first domain administrator - is not ideal... but using ONLY the command net localgroup in there that's what I found to work more consistently.

  • GVA running on the Group of

    Hello


    I have a small requirement on the aggrigating functions. I have 4 year colums, month, unitprice, running_avg on unitprice HAV.
    but GVA integer values is 2. It calculates before gva. but I need wise year 2 average AVG running
    It has values after changing the year of breaking.

    I hope you understand my requirement, someone answer

    This works very well for me:
    SELECT "D0 time." "" Saw_0 T05 name annually. "
    "D0 time '." T03 by name Qtr' saw_1,.
    ««F1 recipes»» Recipes 1-01 (after all)"saw_2,.
    Macrocrania ('F1 income'. "" Recipes 1-01 (after all) ", 2 by"time of D0. ("' T05 name year") saw_3
    OF 'Sample Sales' ORDER BY saw_0, saw_1

    concerning

    John
    http://obiee101.blogspot.com/

  • How do I add a server in the ad group

    Hello

    I am looking for the how to add a server in the ad group using workflow "add computers to the members of the group.

    I have the workflow of deployment where AD server account is created and I know and can find the server in the OU, but in mentined workflow is used as in table and 'AD_UserGroup' parameter 'addElements' is back from type Sub (Sub addElements (Object [] elemetns: all the elements to add to the Group))-it's the API Explorer.

    Perhaps the better question is how to push this AD:Computer in the table above?

    Any help is helpful, thank you all.

    Hello

    Maybe I found the solution here Re: workflow to set the field of AD description and computer rooms,but I got an error message:

    Error changing item: [LDAP: error code 50-00002098: SecErr: IDDM-03150BB9, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0] (Workflow: Add Group members computers / add members (item0) #18)

    I guess that's no rule to add a server to the Group offers.

    Please correct me if I'm wrong, thanks to all.

  • Can not add members to a group as the group administrator

    Hello

    My colleague has created a 'WE_PM_group' group and added me to this group with the "group administrator" role.
    But when I connect to the tool "Create or add new members of the group", then after SSO and grateful the "read and understood the guidelines Beehive online", it does not show the "WE_PM_group" (it does show some groups) and I can only create a group.
    My question: How can I add members to the group that my colleague created and I am the group administrator?

    Note: When I connect to the Administration of BeehiveOnline tool, I indeed see my e-mail address in the 'WE_PM_group' group and with the correct role (Administrator of the Group)

    Thanks for your help,
    Peter

    You can add users to a group, your colleague whop created the group to add your email address in the field E-mail of managers. Any user with their email address in this field will be able to manage the group.

    Phil

  • in Outlook Express, how can I send the same message to a group important (in the address book already), but have to each recipient can only see his name (not the Group)

    In Outlook Express, how can I send the same message to the large group (already in the address book), but have to each recipient can only see his name (not the Group)?

    To use the functionality of the BCC (Blind Carbon Copy), in a new message window, click View | All headers and type the addresses separated by a; Or: Click the button to. You will see your list of contacts and the choice to put them in the To, CC, or BCC field. Click on an address, and then click BCC to add it. Repeat for all of the contacts you want. (Note: most of the providers have limits as to how many messages you can send both a. 25 is common, but it varies).

    Put your own address in the box to. That's the only name/address that any recipient will see. If you leave the field empty, some people may not receive e-mail because of message rules they put in place, or restrictions imposed by their ISP.

    You can also make an entry in the address book using your e-mail address, but put something like the mailing list in the area of the display.

    *********************

    You can also create groups if you send e-mail to the same people often.

    To create a group of contacts:

    You can create a single group name (or alias) to use when sending a message to several contacts at the same time. Just create a group name and add individual contacts to the group. Then just type the name of the group in the box for when you send mail.

    1. in the address book, select the folder in which you want to create a group. Click New in the toolbar, and then click New Group.
    2. the Properties dialog box opens. In the group name box, type the name of the group.
    3. There are several ways to add people to the Group:
    a. to add a person from your address book list, click Select members, and then click a name in the address book list.
    (b) to add a person directly to the group without adding the name to your address book, type the person's name and e-mail address at the bottom of the Properties dialog box and then click Add.
    to add a person to both the Group and your address book, click New Contact and enter the appropriate information.
    (d) to use a directory service, click Select members, and then click search. Select a directory service in the drop-down list at the end of the text box. After finding and selecting an address, it is automatically added to your address book.
    4. Repeat for each addition until your group is defined.

    Note

    a. to view a list of your groups separately from the list of address book in the address book on the view menu, make sure that folders and groups is selected.
     
    b. you can create multiple groups, and contacts can belong to several groups.

    If you want to send to a group without addresses are displayed for each recipient, open the address book and make a new entry. Enter the name of the group in the area of the display, but use your address. (Some Internet service providers require a legitimate address in the line to and recipients will know it's from the Group).

    Click on the button to. Enter the name of the group using your address. Enter the group in the BCC field.

  • SUM on & Partition BY... Try to get the correct total run.

    running: Oracle XE 11


    Hi all, I am using the analytical function of PARTITION BY to get my total race for a report. (in this case the bank balance)


    SUM (bank_stmts.amount) OVER (PARTITION BY bank_stmts.account_ID ORDER BY bank_stmts.tx_date, bank_stmts.id)


    I add a balance initial in the table at the beginning of the year, and everything works fine when I select on the recordings of the whole years...


    However, I need to interview a subset of the report, i.e. one month, or a selection of documents, rather than year-round. But I still want to see the total calculated for the whole year on the report, not a total operating for the subset of records. I'm not sure how to do that because when I select a subset, it totals only the subset...


    I see that there are a number of clauses on the analytical function, especially BETWEEN the LINES or RANGE, but my assumption is that these still only works on surveyed lines and not any of the table...


    My way of thinking for the moment, is that patients have to calculate and enter the total in the table when the row is inserted, probably via a trigger. However, I didn't keep far from...


    Kind regards

    Richard

    SQL > with t as)
    2. Select ename,
    3                     job,
    4 hiredate,
    5 sum (sal) over (partition by deptno arrested by hiredate) running_total_sal
    6 of PEM
    7            )
    8 select
    9 t
    10 order by hiredate
    11.

    HIREDATE RUNNING_TOTAL_SAL EMPLOYMENT ENAME
    ------ --------- --------- -----------------
    SMITH, CLERK DECEMBER 17, 80 800
    ALLEN SALESMAN FEBRUARY 20 81 1600
    WARD 22 FEBRUARY SALESMAN 81 2850
    MANAGER OF JONES 2 APRIL 81 3775
    BLAKE MANAGER MAY 1, 81 5700
    CLARK MANAGER JUNE 9, 81 2450
    SELLER OF 7200 08 - SEP - 81 TURNER
    MARTIN SELLER 28-SEP-81 8450
    PRESIDENT KING NOVEMBER 17 81-7450
    JAMES CLERK 9400 3 DECEMBER 81
    DECEMBER 3, 81 FORD ANALYST 6775

    HIREDATE RUNNING_TOTAL_SAL EMPLOYMENT ENAME
    ------ --------- --------- -----------------
    MILLER COMMITTED JANUARY 23, 82 8750
    SCOTT, ANALYST APRIL 19 87 9775
    ADAMS, CLERK MAY 23, 87 10875

    14 selected lines.

    SQL > with t as)
    2. Select ename,
    3                     job,
    4 hiredate,
    5 sum (sal) over (partition by deptno arrested by hiredate) running_total_sal
    6 of PEM
    7            )
    8 select
    9 t
    10 where hiredate > = date ' 1981-01-01'
    11 and hiredate<  date="">
    12 order by hiredate
    13.

    HIREDATE RUNNING_TOTAL_SAL EMPLOYMENT ENAME
    ------ --------- --------- -----------------
    ALLEN SALESMAN FEBRUARY 20 81 1600
    WARD 22 FEBRUARY SALESMAN 81 2850
    MANAGER OF JONES 2 APRIL 81 3775
    BLAKE MANAGER MAY 1, 81 5700
    CLARK MANAGER JUNE 9, 81 2450

    SQL >

    SY.

  • I have a late 2008 aluminium MacBook El Capitan 10.11.6 running. The cam to computer with 2 GB of ram and the instructions say there is a maximum of 4 GB. This ceiling is still valid or if I add 8 GB?

    I have a late 2008 aluminium MacBook El Capitan 10.11.6 running. The computer came with 2 GB of ram and the instructions say that there is a maximum of 4 GB. This ceiling is still valid or if I add 8 GB?

    Yes, your MacBook accepts two RAM sticks of 4 GB, 8 GB total, you'd better update the firmware Version MB51.007D.B03.

    y-13-non-pro-how-to-upgrade-ram.html http://www.EveryMac.com/systems/Apple/MacBook/MacBook-unibody-FAQ/MacBook-unibod

  • How to add a BUTTON in the form of a report in report Page last column

    Hi friends,

    I created a form with Page report. Now, I want to ADD a button in the last column named Add in the last column of the Report.that would be a new column added to the report.

    How can I add a button to the form with Page report in the report and tell me how PK as ORDER_ID of a particular LINE with this button to add a reference ELEMENT.
    When I click on the button Add ELEMENT, then command to go to the next Page with ORDER_ID.


    How can I do that.


    Thank you

    Hello

    Modify your report and click the report attributes. On the right under 'Tasks' is "Add the link in the column" - click that. This creates a new column. Scroll down to the links section of this new column and add in the following:

    Link text: Add article
    Target: Page in the present application
    Page: (enter the number of the form page)
    Clear the Cache: (enter the number of the form page)
    Point 1 (name): (enter or select the name of the element of the form for the primary key page - for example, P2_ORDER_ID)
    Point 1 (value): (enter or select #ORDER_ID #-which should be the ORDER_ID column on the table for the report)

    Click on apply changes to save and run the report

    This creates a normal hyperlink in the column - each line will have a different value of ORDER_ID, so every link will be slightly different. If you want to make the link look like a button, you can do it with style if necessary

    Andy

  • Running Firefox 18.0.1 and FoxTab will add is no longer the best sites - all solution

    Since the last update is no longer favorite to FoxTab Environnement sites. The option when I right click, but nothing happens. It is a desktop running Windows 7 64 bit computer. I am also having the same problem on my laptop which is running the same OS

    I can't foxtabs to work. Nothing happens when I add a site to the Top Sites, and when I open Foxtabs, there are words and icons in a "jumble" at the bottom left of the screen. I'm running a Vista 64-bit. Also, I have a laptop with XP where Foxtabs works perfectly...

  • error message: "Windows cannot add a printer. The local print spooler service is not running. Please restart the spoiler or reboot the machine.

    Hello
    After upgrading to windows 7 Home premium 64 bit vista family premium 64-bit, I expected to be able to connect my EPSON Stylus D68 printer on my laptop and leave immediately. However, when I tried to do this installation constantly failed.  Therefore, I went to the manual add the printer option in the menu devices and printers. However I met this error message: "Windows cannot add a printer. The local print spooler service is not running. Please restart the spoiler or restart the machine,"after reviewing the existing forums on the issue, I tried to restart the services option. However, the restart option has been obscured and when I just tried to start then I met an other error message: "windows could not start the spooler on the local computer service, error 1053: service has failed to demand launch or control in a timely. more when I click Properties to the spooler in the description it says failure to read the description. error code: 1813. This is all very frustrating for someone who just wants to add a printer to his laptop computer. can someone please? because I am all of these ideas.
    Thanks in advance,
    Chris.

    Try runing the file system Checker to check the alteration of system files - 1 Option to follow in the folliwng link:

    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

  • Add custom button to the right of SEARCH in the interactive report

    Is it possible to add a custom to the right of the search bar button

    ApEx 3.2.1 < == do not laugh

    S.Bovin wrote:

    Is it possible to add a custom to the right of the search bar button

    ApEx 3.2.1<== dont="">

    Create the button as a button in the region in the region of the infrared, with the Position of the button the value to the right of the Interactive Search Bar report.

  • I am creating a total field contingent in a PDF form created by me which will only add cost in total ONLY if the box is checked.  Another disadvantage to this is one of the fields (number of monitors), I am eager to multiply by the field notes.

    I am creating a total field contingent in a PDF form created by me which will only add cost in total ONLY if the box is checked.  Another disadvantage to this is one of the fields (number of monitors), I am eager to multiply by the field notes, which is a field required number on there.

    All of them are select___

    Here are all the names of FQDN (towards the bottom):

    Check the boxes:

    • selectiPhone
    • selectSwipe
    • selectMonitor
    • selectDesktop
    • selectLaptop
    • selectiPadCell
    • selectiPad
    • selectPhone

    Fields of costs:

    • CostiPhone
    • CostSwipe
    • CostMonitor
    • CostDesktop
    • CostLaptop
    • CostiPadCell
    • CostiPad
    • CostPhone

    The notes field that will calculate this is "NotesComputer Monitor in notes". -It is a body of numbers forced the inability to put anything else in it.

    Then add them all in TOTAL COST

    Sorry for my ignorance: it's my first time doing a form like this.

    Please see below for the screenshot.

    2015-10-12_1411.png

    Dropbox - conditionalSum.pdf has the answer

  • Cannot add to the inventory if virtual machine running on the other guests - iSCSI and VMFS5

    5.5 ESXi hosts free standalone version

    iSCSI mounts with multiple paths - relatively new unit with more modern hardware

    CHAP not used

    I'm running a few hosts in order to climb the same iSCSI data stores. The iSCSI LUN is visible and editable by all hosts. If Host1 is to map the iSCSI LUN (VMFS5) and a VM is powered, Host2 can add that VM to the inventory. It's possible with NFS iSCSI for a reason any. This is for a specific reason? Only when I turned off the virtual computer can I add it to both hosts. Other that just lock files are placed in the directory, I missed something related to the lock?

    From now on, adding new esxi hosts does not allow me to add existing virtual machine, less than the voltage first. Once again, NFS does, iSCSI, this isn't. Any ideas?

    It is not specific to ISCSI but rather to the use of VMFS. NFS has no awareness VM VMFS is and why it is not possible to do that with iSCSI / VMFS. There is a lock on the disk for each virtual machine of (race), and that's why the second host is not able to add this host to its inventory. With vSphere HA, this lock is released when a failover should occur.

  • Paramerterized interactive reports - is there a quick fix to stop the query to run when the page is entered before user by clicking OK.

    Example of

    Currently, when the user enters the page interactive report runs (unless the user hitting ' go') and - does no data found because one "parameterized" field is required and the sql is not set to NULL values.

    I'm looking for a way to not run a query at all -until the user hits go for the first time on the page - each time that they re - enter the page in the same session, it would be OK to auto submit the query.

    I believe that I can install a hidden item and check on my interactive report E1 not null.  Then create a 'calculation' on 'after bid"that would set this value to a value - say 1.

    I can't seem to be able to get this to work however.

    In my interactive report - I wonder what 'type condition' should I use.  Any thoughts would be greatly appreciated.

    You have two regions, research and order Type. You have items in the two regions. However, I think you are talking about the area "Search" when you say 2 parameters.

    If you want to just display IR when the user clicks on 'Go' or click on 'Go' earlier in the same session, then I suggest,

    • Create a new item of the hidden page, P6_SHOW_IR
    • Create page process that runs when the user clicks on the button 'Go '. Here to update the value of P6_SHOW_IR 'Y '.
    • Create a branch that connects to the same page with "State of Session saving" checked (connections conditional, when click on the button "Go")
    • Set "Conditions" for the region of infrared, so it displays only when the value of the P6_SHOW_IR element is Y

    Kind regards

    Hari

Maybe you are looking for

  • How can I copy my favorites on the desktop

    I want to uninstall Firefox to remove the pop up ads if all goes well, and then reinstall it. I don't want to lose my favorites in the process.

  • Recently upgraded memory, not in use

    Hi, I have a HP Probook 6555 mobile computer b, which came with 4 GB installed RAM. Operating system is Windows 7 Professional 64 bit. The record said that the maximum memory that can be installed is 8GB. I upgraded the RAM 8 GB, DDR3 SODIMM 2x4G. Wh

  • public directory macro TestStand

    I would like to get the path of TestStandPublicDirectory in an expression by using a macro. Is this possible? Or y at - it another way to get the path of the directory string? Madottati

  • How can I set up an ad-hoc connection without wifi connection

    I tried many things but I m failed.i just want to create a hotspot. When I click on configure connection ad it show windows can't detect all wireless network interfaces. Please give me an idea. If it would never be possible to create ad-hoc without w

  • Cisco VPN + Win XP SP2 Firewall

    We started to test Windows XP SP2, last week and met with an interesting question. If you activate the XP SP2 Firewall services it will disrupt Cisco VPN to establish a TCP connection. I created an exception to the application, but is not solving the