Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: how to select a 'not unique' field?
Hey Susana,
I like inline views for this one...
select nvl(resultid, 'NULL')
from (select resultid, count(*) appearances
from object group by resultid) score
...it even catches those pesky NULL values when they appear.
Jay!!!
susana73_at_hotmail.com wrote:
> I have a table called OBJECT and with RESULTID column. The RESULTID
> column is not a PK and is not necessarily be unique. How can I SELECT
> all the id that is NOT UNIQUE?
>
> Thanks!
> Susan
>
> Sent via Deja.com
> http://www.deja.com/
--Received on Thu Dec 14 2000 - 18:54:28 CST
![]() |
![]() |