home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / oracle / 2784 < prev    next >
Encoding:
Text File  |  1993-01-12  |  879 b   |  36 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!easix!bc3!bruno
  3. From: bruno@bc3.GUN.de (Bruno Cirone)
  4. Subject: running total (SQL query)
  5. Organization: private
  6. Date: Tue, 12 Jan 1993 18:39:53 GMT
  7. Message-ID: <C0r7uI.po@bc3.GUN.de>
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Lines: 25
  10.  
  11. I have this table:
  12.  
  13.     Name          Score
  14.  
  15.     Werner        200
  16.     Hugo           -100
  17.     Heinz        300
  18.     Bruno        100
  19.  
  20. I want this table to be printed like the following:
  21.  
  22.     Name          Score    total
  23.  
  24.     Werner        200    200
  25.     Hugo           -100    100
  26.     Heinz        300    400
  27.     Bruno        100    500
  28.  
  29. How can I do that with Oracle (without report-generator) ?
  30.  
  31. -- 
  32. Bruno Cirone             InterNet: <bruno@bc3.gun.de>
  33. Theodor-Heuss-Ring 19-21    UUCP: ...!unido!easix!flyer!bc3!bruno
  34. 5000 Koeln (Cologne) 1        Fax : +49-221-7710931
  35. FRG / Germany            Tel.: +49-221-7710929
  36.