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: URGENT: sql group by clause has stopped working

Re: URGENT: sql group by clause has stopped working

From: roobaron <member_at_dbforums.com>
Date: 9 Aug 2002 02:20:50 GMT
Message-ID: <1680093.1028857449@dbforums.com>

try

select owner
from smith
where job = 'comp'
and branch = '9'
group by owner
having count(owner) > 1;

The HAVING clause is useful in determining dupes.

Have Fun

--

Posted via dBforums\nhttp://dbforums.com
Received on Thu Aug 08 2002 - 21:20:50 CDT

Original text of this message

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