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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Select count(name) from table group by name where count(name)

RE: Select count(name) from table group by name where count(name)

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Thu, 29 Aug 2002 15:26:47 -0800
Message-ID: <F001.004C366F.20020829152647@fatcity.com>


select name
from table
group by name
having count(*) = 1

-----Original Message-----
Sent: Thursday, August 29, 2002 6:39 PM
To: Multiple recipients of list ORACLE-L 1

Hello guys,

I am baffled by this problem.

I need to fish out the person's name from a list but I only want the name of the person that occurs once in the list - minus those names that occurs more than once.

Now, I know about "distinct" and "unique", but this is not what I want. All I want is to be able to fish out the names of the people who have only one and exactly only one entry in the list. I do not want the names of those people who have more than one entry in the list.

Could one of you do me a huge favor give me some hints as to how to contruct the select statement for this.

Thanks.

ltiu

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: ltiu
  INET: ltiu_at_alumni.sfu.ca

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Khedr, Waleed
  INET: Waleed.Khedr_at_FMR.COM
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Aug 29 2002 - 18:26:47 CDT

Original text of this message

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