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

Home -> Community -> Usenet -> c.d.o.server -> Re: Group by question ...

Re: Group by question ...

From: Mikito Harakiri <mikharakiri_at_yahoo.com>
Date: 5 Nov 2002 18:00:49 -0800
Message-ID: <bdf69bdf.0211051800.35acef61@posting.google.com>


"Oraclion" <inferno74_at_caramail.com> wrote in message news:<aq8hoh$f5t$1_at_news-reader11.wanadoo.fr>...
> HI
>
> I want to do
>
> SELECT A,B,C,D,E, sum(F) from Table group by A || B || C;
>
> It's not possible because A isn't a group by expression ! ok
> Is a way exists to do this ?

Suppose you have:

A B F
-- -- --
11 1 10
1 11 11

Then, what result of

SELECT A,B sum(F) from Table group by A || B

would you expect?

A B F
-- -- --
11 1 10
1 11 11

(aka group by A, B) or

A || B F
------ --
111 21

(aka select A || B)? Received on Tue Nov 05 2002 - 20:00:49 CST

Original text of this message

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