| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Group by question ...
Hi Oraclion,
you need to do something like :
select ....
from ....
group by a,b,c,d,e
because none of them are columns upon which you have carried out an 'aggregate' function.
However, you can do this :
select a || b || c, d, e, sum(f)
from .....
group by a || b || c, d, e
but you still need to group by all the un 'aggregated' columns - so d and e must be in the group by.
HTH
Regards,
Norman.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.com
-------------------------------------
-----Original Message-----
From: Oraclion [mailto:inferno74_at_caramail.com]
Posted At: Tuesday, November 05, 2002 1:49 PM
Posted To: server
Conversation: Group by question ...
Subject: Group by question ...
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 ?
Bests regards
Oraclion
Received on Tue Nov 05 2002 - 08:01:42 CST
![]() |
![]() |