ADD THE AMOUNT WITHOUT USING THE COMMAND

Hi 2 all...

the table contains:

UID billno amount
1 101 100
2 102 200
3 103 300

the o/p should be:

UID total amount billno
1 101 100
2 102 200 300
3 103 300 600

I need the query for this pblm without using the command... Please advice... can someone send immed... Thanks in advance...

If you still don't bother to write in proper understandable English or probably your keyboard is broken.

Anyway 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

Tags: Database

Similar Questions

  • How to add the command "Edit-add photo" my version of Adobe?

    The command tools/change/add photo is missing on my version of Adobe/Acrobat

    (I have all the others, such as CONTENT/addition / AREA TEXT CHANGE...)

    Would it not possible to add this command to my program?

    Thanks for your help-

    Chris

    Thank you for that. It is good to know that Adobe did not mention the 'standard' in the X version, but I think there has got to be Standard, Acrobat Pro always says Pro.

    I have the exploit change picture might well be a feature in Acrobat Pro.

  • Add the command TAB in JavaScript?

    How could I add tab x times in a JS command? Travel? Thank you!         ~ Carol

    You would not... .you would use a setFocus command to place the cursor in the appropriate field.

    Paul

  • amount without using 2 selects

    How can I achieve this without with 2 queries to calculate the sum buys and sells?

    BANK TOTAL_SHARES

    ----- ------------

    BANK1 30

    BANK2 25

    20 BANK4

    BANK5 20

    BANK3 15

    Script to test

    create table test (varchar2 (5) buyer, SELLER varchar2 (5), actions numeric (10));

    insert into test values ('BANK1', "BANK1", 10);

    insert into test values ('BANK1', "BANK2", 10);

    insert into test values ('BANK3', 'BANK2', 15);

    insert into test values ('BANK4', 'BANK5', 20);

    commit;

    Select the Bank, sum (shares) total_shares of

    (

    Select the Bank of the buyer, sum (shares) shares of the test by the buyer group

    Union

    Select the Bank of the seller, sum (shares) shares of the test by the seller group

    )

    Bank Group

    total_shares desc order, Bank;

    Thank you very much!

  • Is it possible to run DiagOnCAN with the NI-CAN driver only (without car Diag command Set)

    Hello world

    Is it possible to run DiagOnCan without using Diag command set auto - only with the NI-CAN driver (hardware I use is low tolerant speed - USB8472 and NOR-XNET)?

    G. Petko

    no problem to do with your hardware and NI-CAN frame API.

    However, you must implement the Diag and Services Transport layer on your own, which is quite a big job.

    I recommend you spend the money for automotive diagnostic command set that supports

    • NI CAN (PXI, PCI, PCMCIA, USB)

    • NOR-XNET

    • cRIO/985 x target (Pharlap and VxWorks) #.

    which means that if you plan to transfer your application in the future to different hardware target or the real-time target, that you don't need to change your app at all.

  • Use the commands of the expression to preset animations...

    I have several preset animations that contain expressions with expression control sliders. When I apply the animation preset to a layer, it adds the commands of expressions in the effect controls panel as usual and everything works fine.

    However, if I add another animation preset to the same layer there is no add a double set of options for expressions (with a number appended to the name 2) instead of just replace existing ones. I realize that the preset detected a duplicate name, that's why the 2 has been added... but the real expression has not been updated to use the new name of control of expression. So basically, the expression still refers to the original name and completely ignores the game duplicate of the controls in the expression that was created.

    If anyone knows a way to get an animation preset to replace or upgrade options for existing expressions that use the same name?

    You must rename your controls of expression. This will solve the problem if all names are unique. If you apply the same predefined animation twice for the same layer and this preset contains options for expressions then you will get duplicate with the added number names. There is no way around that.

  • Create shortcuts with the command line switches

    I have three versions of Word on my computer. (I know, I'm a masochist).

    There are times when I want to run one of them in safe mode. Those who get me if I run winword.exe /a in the run window let you guess.

    I know I can get it by including all the way, but it's a pain.

    I would like to make a few shortcuts in Windows that would do this for me. However, I don't know how to add the command line switches. I used to be able to properties (similar to editing a .pif file) but it doesn't seem to be an option.

    You * need to locate executable files and create each shortcut via right click on the executable file.  Shortcuts Microsoft Office may not be "real" classical shortcuts

    Right click and change the shortcut.  In the 'Target' box, add at the end command line switch.

    For example... I found the 64-bit Microsoft Office 2010 Word executable here:
    «"C:\Program Files\Microsoft Office\Office14\WINWORD."» EXE ".

    and created a shortcut on my desktop.  The "target", said:
    «"C:\Program Files\Microsoft Office\Office14\WINWORD."» EXE ".

    I added the / a that you pointed at the end, the target is now:

    «"C:\Program Files\Microsoft Office\Office14\WINWORD."» "EXE" /a

    In fact - the after typing all that above, I realized that there is a Microsoft Knowledgebase Article... Google worked and I do not use it.  Heh

    How to use the line switches of start command to start Word 2010, Word 2007, Word 2003, Word 2002, and Word 2000 (Method 2).

  • I can settings add e-mail account by using the command line?

    Can I programmatically or by using the command prompt add parameters of "e-mail account"? for example: IMAP/POP3 "Incoming mail server" etc.

    No, there is no API to add an account without the help of the default interface of the to do.

  • Disable the download of files in version 3.0.8 without using an add-on

    I need to be able to prevent a user to save a file under version 3.0.8 without using an add-on. Any help would be greatly appreciated.

    So I corrected myself. That I did change the mimeTypes.rdf file to try to open the types of documents to let with/bin/rm (essentially would work with anything really.) so that it doesn't encourage them to download.

  • Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    If a shortcut is used while Firefox is already open the error will not occur.

    For me, the problem was the FoxClock extension. Once I disabled it, the problem was gone.

    Hope this helps.

    Olivier

  • a way to talk to the command prompt without using exec.vi system

    I had used exec.vi system in recent weeks to send commands to the command prompt and then bring back the exit in labview. All of a sudden this week the vi does not work and I can not even an exec.vi system output when I send the same commands that I sent before. I was wondering if there was another way to send & receive orders from the cmd prompt in labview without using exec system?


  • HELP-I can't open things such as the restoration of the system or the command prompt, etc without being asked to "choose the program you want to use to open this file"

    HELP-I can't open things such as the restoration of the system or the command prompt, etc without being asked to "choose the program you want to use to open this file"

    so boring

    Hello

    Download and run the fixit tool from the link below and check if this solves the problem.

    http://support.Microsoft.com/kb/950505

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • I try to add a route using the route add command, the command response is "the requested operation requires a rise."

    I'm traying to add a route using the route add command, the command response is "the requested operation requires a rise."

    Command: route add 10.1.1.0 mask 192.168.31.3 192.168.31.33

    Whay can I do, because I had tried in many cases

    original title: route command

    In response to a previous and similar thread...

    You can watch using the PowerShell...

    http://TechNet.Microsoft.com/en-us/library/bb978526.aspx

    http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419.aspx

    .. .and post this question on the forum of Windows PowerShell...

    http://social.technet.Microsoft.com/forums/en/winserverpowershell/threads

  • How install Flash Player via the command line using sudo to install without being invited for the dialog "Preferences updated Flash Player"? Is there a really quiet option, no prompt?

    Since the administration guide, I execute the following commands on a remote host to install flash player. However, the command stalls waiting for "Update Flash Player Preferences" dialog box to decide. I would like to run this command on a remote host and have to install without any warning. Are the other arguments to the "'Adobe Flash Player install Manager" another that '-install ', something that is really quiet? "


    Silent installation of Flash Player (using Installer .app bundle)

    To silently install the Flash Player 11.3 or later on Mac, follow these steps:

    1 extract the bundle to install Adobe Flash Player (install Adobe Flash Player.app) of the. DMG file.

    2 open a terminal window and change to the directory where the .app file is saved.

    For example, if the .app file is saved to the desktop of the current user, type:

    CD ~/Desktop

    3. run the installation program contained in the .app file using the following command:

    sudo. / Install Adobe Flash Player.app/Contents/MacOS/Adobe Flash Player install Manager.

    install

    4. type the password to continue the installation.


    Thank you.

    Hello

    You experience this behavior because you use the installer online, download and install Flash Player silently in background, but requires also the user to provide the option to update.  Setup Online is not intended for the distribution of the company.  Distribute Flash Player within your organization, you will need Flash Player (usually free) licenses for distribution.  Apply for a license, go to Adobe Flash Player Distribution. Adobe and complete and submit the form.  After application, you will receive an email with a link to download installers for the distribution of the company.  This includes installers .app both .pkg you can use.  None of these prompts to update the options during installation in silent mode.

    I apologize for not noticing this before, however, I assume that you did not use the installer online since you were distributing Flash Player within your organization.

    --

    Maria

  • Cannot add the host by using the command Add-vmhost pcli

    Hi all

    I'm unable to add esx host in the cluster and fetting an error that authenticity of hospitality «»

    SSL certificate is not verified. "even if after giving the parameter - force.
    Below is the command I use and the error I get
    : > Add-vmhost-name xxxx.xxxx.com - force - location clus
    error: dd-VMHost: 21/01/2013-17:49:30 Add-VMHost authenticity of hospitality
    SSL certificate is not verified.

    Please suggest.

    What PowerCLI version do you use?

    Make one

    Get-PowerCLIVersion

    If this isn't the case, 5.1, can upgrade you to access this setting?

Maybe you are looking for

  • Firefox crashes almost every time that I try to attach a document. Why?

    I just had a new PC from Dell XPS Dimension w/Win 8.1. She doesn't have Firefox, so I downloaded (version 29.0.1). Almost every time that I try to attach a document, for example, a photo or other file, Firefox crashes. The accident occurred when I do

  • Satellite L750 goes no more 'sleep' mode

    I've had my L750 for 10 months now. Suddenly it will not go in mode 'sleep' when I close the lid. I checked the power settings and it is set to standby mode when closed. Everyone has ideas, I'm sick of working full time.

  • HP Pavilion p6710f: Question of compatibility before panel connectors

    Hi, I decided to build a new office and reuse my old HP pavilion case. So, my question is whether the connector on the front panel of the case is compatibile with the Panel on my new motherboard header. My motherboard is ASRock B150M Pro4s. Thank you

  • CD/DVD is recognized by the computer, but does not

    My CD/DVD is recognized by the computer, but does not... tried fix it did not help My CD/DVD drive has stopped working.  My computer recognizes the drive but when I put a disk in it cannot read.  I tried multiple disks, but nothing will work.  I trie

  • Question of Tungsten E2

    Tungsten E2 device Palm Desktop on Win XP Pro SP3 OEM Dell machine. Looking for advice to purge the data of number of years, I have acquired a new device from today since my original unit is in his last breath. What I try to do is, purge the data for