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 -> Is it possbile to SUM the members of a group expression in SQL?

Is it possbile to SUM the members of a group expression in SQL?

From: Chris Newman <chris_newman_at_bigpond.com>
Date: Sun, 11 Nov 2001 18:37:35 +1100
Message-ID: <B81475EF.A2FB%chris_newman@bigpond.com>


SUM only works on the entire column.

But is it possible to produce a subtotal so that table with contents this

Name date1 price
Name date1 price
Name date1 price
Name date1 price
Name date2 price
Name date2 price
Name date2 price
Name date2 price

Displays as

Name Date1 (total prices related to date1) Name Date2 (total prices related to date2) Received on Sun Nov 11 2001 - 01:37:35 CST

Original text of this message

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