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: SQL Syntax Query - sorry

Re: SQL Syntax Query - sorry

From: Bert Bear <bertbear_at_NOSPAMbertbear.net>
Date: Mon, 16 Dec 2002 18:16:56 GMT
Message-ID: <sMoL9.708$NW2.243384539@newssvr12.news.prodigy.com>


Colin,

I think Peter with his query:

select familyid from (select distinct familyid, childname from family where childname in ('Robert','Rex')) group by familyid having count(*) = 2;

has the definitive answer. Let us know how it turns out for you.

Bert.

"Colin McGuire" <colinandkaren_at_lycos.co.uk> wrote in message news:ab6cea37.0212160635.7b985d40_at_posting.google.com...
> "Bert Bear" <bertbear_at_NOSPAMbertbear.net> wrote in message
news:<sObL9.2825
>
> > Will "FamilyID" and "Childname" be unique (e.g. able to be a composite
> > Primary Key?)?
> >
>
> Yes.
> Colin
Received on Mon Dec 16 2002 - 12:16:56 CST

Original text of this message

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