Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> SQL-statement

SQL-statement

From: <ohahaahr_at_hotmail.com>
Date: 31 Aug 2005 22:18:51 -0700
Message-ID: <1125551930.998634.22670@g43g2000cwa.googlegroups.com>


Hi !

I have a table (TableA) showing statitics of number of lines on my salesorders. The table has 2 fields (Lines and qty)

In this example, i have 10 salesorders.

4 of them have 1 line.
4 of them have 2 lines.
2 of them have 5 lines.

I want to make a script, that looks like this:

Lines Qty Percent Accumulated percent

----- --- ------- -------------------
1     4   40      40
2     4   40      80
5     2   20      100


Is this posible with an SQl-statement ?

Regards,
Ole Received on Thu Sep 01 2005 - 00:18:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US