SUM THE AMOUNT WITHOUT USING THE OVER COMMAND

hi 2 everybody......
the table contains:
uid billno amount
1 101 100
2 102 200
3 103 300
the o/p shuld be:
uid billno amount total
1 101 100
2 102 200 300
3 103 300 600
i need the query for this pblm without using the over command... please advice... can anyone send immed... thanks in advance...

So you still don't bother to write in proper understandable English or probably your keyboard is broken.
Any way you can do this
SQL> WITH t AS (
  2  SELECT 1 col_uid, 101 billno, 100 amount FROM DUAL UNION ALL
  3  SELECT 2, 102, 200 FROM DUAL UNION ALL
  4  SELECT 3, 103, 300 FROM DUAL)
  5  -- end test data
  6  select col_uid, billno, amount, decode(amount, amount_cum, null, amount_cum) amount_cum
  7    from (
  8  select t.*, (select sum(amount) from t t1 where t1.col_uid <= t.col_uid) amount_cum
  9    from t)
10  /
   COL_UID     BILLNO     AMOUNT AMOUNT_CUM
         1        101        100
         2        102        200 300
         3        103        300 600

Similar Messages

  • My macbook froze up. Finger gestures work, but I cant close out of any windows. How do I close out the windows without using the track pad?

    My macbook froze up. Finger gestures work, but I can't close out of any windows by clicking on the red "X". How do I close out the windows without using the track pad?

    Command + W will close a window. Command + Q will quit a program.

  • Import roles to the ERM without using the "Mass Role Import

    Hello,
    I want to know if there is another way to import roles to the ERM without using the "Mass Role Import.
    Im'm using SAP GRC AC 5.3
    Best Regards.
    Pablo Mortera.

    Hi.
    There is NO other way to import roles..
    We need to use only ERM for "Mass Role Import.
    Regards
    Gangadhar

  • How to invoke the app by touching the screen (without using the home button)

    Kindly  provide the solutions for the following issues
    1.       How to invoke the app by touching the screen (without using the home button)
    2.       Estimated lifespan running an iPad3 continuously 24x7
    awaiting for your valuable response.
    Thanks and regards,
    Sathya.

    1.  You can only invoke an app by touching its icon.
    2.  All depends on what your app does.

  • I have creative suite version 5.5 Isn't there a way to just upgrade the software without using the cloud and a monthly plan?

    I have creative suite version 5.5 Isn't there a way to just upgrade the software without using the cloud and a monthly plan?

    Only to the 3+ year old Creative Suite 6

  • Is there anyway of usign the N97 without using the...

    I would like to be able to open the phone by sliding or something on the main screen instead of using the button on the side. Is there a app or something to do this?

    are you crazy there are no cracked apps. i am a mod over at daily mobile. we DO NOT allow cracked apps under any circumstances on our forum. be careful what you are accusing people of..
    kavi6233 wrote:
    Dude, soon ur gna get a private message from the moderators asking not to give external links to cracked apps!
    Don't say I didnt warn! 
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • How to find a word and copy the phrase containing the word without using the mouse

    I am using a macro to fill in a form and select fields in the form. The fields are titled and i want to use the field title to select the field and thus need to copy the name to compare with the search text and tab to the next requested field.

    Ctrl+f opens the search in page feature. However, the result is not automatically selected and ready for copying. And since you already typed the query, you wouldn't really save any time that way...
    Firefox has some accessibility features you could explore: [[Accessibility features in Firefox - Make Firefox and web content work for all users]]. These include placing a movable cursor into the page, or searching/selecting using / and other possibly useful items. Maybe between them you can find a good workflow. If not, maybe an add-on?
    ''Edit: Here's an example of how to select the word accessibility in this post:''
    Type:
    /acce
    Press:
    Esc, Ctrl+Shift+right
    ''Edit: Actually it works with Ctrl+f as well, and that might be better if the word is common so you can use Next/Previous.''
    Press:
    Ctrl+f
    Type:
    acce
    Press:
    Esc, Ctrl+Shift+right

  • Reinstalling CS4 after deleting the files without using the uninstaller

    Hi I didn't know that I have to use the uninstaller to uninstall my adobe CS4 products on my mac. My photoshop was giving me problems and I decided to reinstall it. However, I uninstalled it the normal mac way i.e. simply deleting it. Now I'm having trouble reinstalling as the installer always fails. Any way to resolve this?
    Thanks!

    However, I uninstalled it the normal mac way i.e. simply deleting it.
    That hasn't been "the normal Mac way" for the last decade... Run the Creative Suite Cleaner Tool, reinstall.
    Mylenium

  • How to move vertically the fields without using the Cross tab layout

    Hi all,
    I'm using Oracle Business Intelligence Discoverer Plus 10g (10.1.2.48.18).
    With Administrator I created a custom folder and I have the following list of fields:
    Ticket id
    Creation date
    Actual Situation
    Gravity
    Owner
    Category
    Group
    Inside my report I have as parameter the Ticket id, and then my intention is to create a page item for the ticket id, in order to change it directly from the report.
    Now my question is very simple. Instead to show the data as usual:
    !http://www.freeimagehosting.net/uploads/3da37e6a71.jpg!
    I'd like to know if there's a way to show these fields exactly in this way:
    !http://www.freeimagehosting.net/uploads/e578a40bb4.jpg!
    I tried to create a Cross tab layout, starting from the Table layout, but it doesn't work because I don't have data points to show, and above all I don't need a Cross tab logic.
    I need only to move vertically all the fields in order to show, for each ticket, all the ticket's details as shown above.
    Is it possible to have this layout ?
    Thanks in advance
    Alex

    Hi Rod, I'm sorry if I answered you only now.
    My expression "in order to change it directly from the report" was just related to the Ticket Id, but right now the customer's requirements changed and I don't need to change it inside the report ; I just insert the Ticket Id at the beginning as parameter and then I see all its details.
    So, I tried your second solution (row generators) following the article on the blog...and It worked perfectly.
    Summarizing I created:
    1. a folder called "Row Generator - 20 rows"
    2. a complex folder called "Fields names"
    and then I created a join between the Tickets folder and the Fields names folder with the Dummy field
    I also create a LOV (on the Administrator) based on a calculated field inside the Fields names folder (I followed the LOV example shown inside the Row Generators Blog Article).
    Now, created the first piece:
    !http://www.freeimagehosting.net/uploads/e578a40bb4.jpg!
    I'm trying to create others details blocks, always in "vertical style" (Customer’s Data, Further Information, etc) as below:
    !http://www.freeimagehosting.net/uploads/8e006eb3cf.jpg!
    Do you know if this layout is feasible ?

  • HT1766 iPhone 4s; Is it possible to sync apps to icloud without using the touchscreen?

    I've been using my iphone 4S with a cracked screen for over three months now (it fell on a tile floor hitting the top front corner first, 5 weeks after I got it) without any issues. Tonight I dropped it from a height of about 8 inches and the part of the face that was cracked made first contact with something that was on a table I was standing at, jamming it further into the phone. When I picked it up I noticed a small piece had also fallen out near an intersection of the cracks. The touchscreen is now completely black.
    My question: Is it possible to sync my apps to the icloud without using the iphone touchscreen? I plan I getting a new phone and had my icloud setup to sync my mail, contacts and calendars. I've been able to download all my pictures and video to my computer.

    Getting/reinstalling the apps isn't a problem. I'm only concerned with the data that is stored within them. For instance I have a mileage tracker I've been using but haven't uploaded the data from the phone to back it up anywhere. I'd like to do that before getting a new phone but I can't see what i'm doing due to the screen not working.
    The phone is actually still working and I've been able to use Siri to make calls and send texts without a working screen. The screen still accepts inputs apparently so if I could return settings to factory settings I could theoretically use another phone side by side to show me exactly where I need to touch and when to back up my applications to iClould.
    Going forward, I actually had ordered another case before my accident as my current case doesn't provide enough protection. It'd be nice if Apple actually made an iphone that didn't need such band-aids for normal usage.

  • How to reference a class without using the new keyword

    I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
    ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
    c.getFirstName();

    quedogf94 wrote:
    I need to access some information from a class using the getter, but I don't want to use the new keyword because it will erase the information in the class. How can I reference the class without using the new keyword.
    ContactInfo c = new ContactInfo(); // problem is here because it erases the info in the class
    c.getFirstName();No.
    Using new does not erase anything. There's nothing to erase. It's brand new. It creates a new instance, and whatever that constructor puts in there, is there. If you then change the contents of that instance, and you want to see them, you have to have maintained a reference to it somewhere, and access that instance's state through that reference.
    As already stated, you seem to be confused between class and instance, at the very least.
    Run this. Study the output carefully. Make sure you understand why you see what you do. Then, if you're still confused, try to rephrase your question in a way that makes some sense based on what you've observed.
    (And not that accessing a class (static) member through a reference, like foo1.getNumFoos() is syntactically legal, but is bad form, since it looks like you're accessing an instance (non-static) member. I do it here just for demonstration purposes.)
    public class Foo {
      private static int numFoos; // class variable
      private int x; // instance varaible
      public Foo(int x) {
        this.x = x;
        numFoos++;
      // class method
      public static int getNumFoos() {
        return numFoos;
      // instance method 
      public int getX() {
        return x;
      public static void main (String[] args) {
        System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
        System.out.println ();
        Foo foo1 = new Foo(42);
        System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
        System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
        System.out.println ("foo1.x is " + foo1.getX ());
        System.out.println ();
        Foo foo2 = new Foo(666);
        System.out.println ("Foo.numFoos is " + Foo.getNumFoos ());
        System.out.println ("foo1.numFoos is " + foo1.getNumFoos ());
        System.out.println ("foo1.x is " + foo1.getX ());
        System.out.println ("foo2.numFoos is " + foo2.getNumFoos ());
        System.out.println ("foo2.x is " + foo2.getX ());
        System.out.println ();
    }

  • How can you backup your iPhone without using the front button?

    My front button doesn't work again. Had this fixed a week ago and it stopped working again.
    So how do I backup the iPhone without being able to close the email account it is in now and get to the Settings without using the front button?

    Restart your iphone by using the power button. After the restart you will be able go to the settings and enable assistive touch!

  • I purchased Photoshop Elements 13 for my Mac which does not have a cd drive.  I have already installed Elements 6 many years ago.  Can I still install my upgrade without using the cd's?

    I purchased Photoshop Elements 13 for my Mac which does not have a cd drive.  I have already installed Elements 6 many years ago.  Can I still install the upgrade without using the cd?

    PSE 10, 11, 12,13 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • Hi am having problems with iTunes,I have all my music on my 4s but I bought the iPhone 5 today.us there any way that I can transfer music over to my new phone without using the library?as it doesn't seem to be on my PCM anymore.

    Hi am having problems with iTunes,I have all my music on my 4s but I bought the iPhone 5 today.is there any way that I can transfer music over to my new phone without using the library?as it doesn't seem to be on my PC anymore.i reset my pc and save my iTunes to a hard drive but can't access it.Need help please

    " When I did this, my library showed all the music I have "purchased" from itunes but did not have the music that I downloaded a long time ago through itunes from my old CDs."
    Correct.
    " How can I get that music to show up in my library now on my new computer?  "
    Copy it from your old computer or your backup copy of your old computer.
    The sync is one way - computer to ipod.

  • You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    Forced me to do a little research.
    DBCC SQLPERF(logspace)
    See also
    http://stackoverflow.com/questions/198343/how-can-i-get-the-size-of-the-transaction-log-in-sql-2005-programmatically
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

Maybe you are looking for

  • Error 150.30 with Photoshop Elements

    My Windows 7 PC died, and I've transferred photographs to my old Dell XP machine.  When I execute Elements, I get the error 150.30 message asking me to restart the maching.  I did that, but still get the error when executing Adobe.

  • Custom File Renaming Template Keeps Changing

    I'm having issues when creating a custom file naming template in Tiger with LR 1.3.1. When importing files, I created a custom template to rename the files with YYMMDD_{original file suffix}{Master}.tif to get this: 071217_12056Master.tif. The first

  • Mouseover doesn't display title attribute

    I know the whole issue about the alt text fiasco. However, on my laptop, the title attribute does not display either. It works fine on other computer's firefox, but not this one. I assume it might be something in my settings, or an add-on getting in

  • Mic recording volume too high

    Even with the lowest input volume setting in System Preferences / Sound, the mic recording volume is too high and I'm getting clipping. I'm using an MXL Desktop Recording Kit from Marshall Electronics, with a Griffin iMic USB interface, and recording

  • Com.sap.j2ee.migration.kit

    Hi all, This is a Developer Studio Plugin for migration for J2Ee projects.   Where can I download this from? Is it available along with the Developer studio installation? Thanks in advance. regards Anoop