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

Home -> Community -> Usenet -> c.d.o.tools -> Re: how to select a 'not unique' field?

Re: how to select a 'not unique' field?

From: Jay Weiland <jay_at_pixar.com>
Date: Thu, 14 Dec 2000 17:08:43 -0800
Message-ID: <3A396F1B.1E60FD88@pixar.com>

Mike Krolewski wrote:

> select resultid
> from OBJECT
> group by resultid
> having count(resultid) > 1

I like your SQL better then my suggestion on this one, but compromise for null values though. It is so annoying when a group by function "skips" over your nulls.

select resultid
from OBJECT
group by resultid
having count(nvl(resultid, null)) > 1

Jay!!! Received on Thu Dec 14 2000 - 19:08:43 CST

Original text of this message

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