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 -> using COUNT and retrieve field in same query

using COUNT and retrieve field in same query

From: Oliver Spiesshofer <oliver_at_email.com>
Date: Mon, 19 Jan 2004 22:22:35 GMT
Message-ID: <Xns9475EDC766AA2oliveremailch@63.223.5.254>


Hi,

 Ihave been trying to do a count and retrieve a field from within the same query:

SELECT field1, count(field2) FROM table1 WHERE field3=1;

but I always get the following error:

not a single-group group function

what am I doing wrong? is this possible at all to do?

thanks

Oliver Received on Mon Jan 19 2004 - 16:22:35 CST

Original text of this message

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