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 -> Re: what wrong with this statement?

Re: what wrong with this statement?

From: Nick <i141802596_at_yahoo.com>
Date: Thu, 16 Mar 2006 04:42:54 +0800
Message-ID: <dv9u2h$2qfl$1@justice.itsc.cuhk.edu.hk>


Volker Hetzer wrote:
> Nick schrieb:

>> when i input the following statement error occur:
>>  select pubid,pubname,TITLE from (publisher natural inner join 
>> journal) group by (pubid) having count(pubid)>1;
>>
>>
>>
>> error:
>> select pubid,pubname,TITLE from (publisher natural inner join journal) 
>> group by (pubid) having count(pubid)>1
>>              *
>> ERROR at line 1:
>> ORA-00979: not a GROUP BY expression

> pubname and title are not part of the group by expression, so oracle
> assumes that they differ within the group. Therefore it can't figure
> out which values to put into the one result row per group.
>
> Lots of Greetings!
> Volker

would you give me some example to use group by? thanks! Received on Wed Mar 15 2006 - 14:42:54 CST

Original text of this message

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