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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Simple query/table design problem

Re: Simple query/table design problem

From: Phil Singer <psinger1_at_chartermi.net>
Date: Sun, 02 Sep 2001 00:55:04 -0400
Message-ID: <3B91BBA8.EC57A8B5@chartermi.net>


Christian Haberbosch wrote:
>
> > How am i going to query this table to find out who speaks english and
> > french ?
> > The answer should be A, B and D
> >
> > select distinct ind from language where lan='english' and
> > lan='french' ?
> > That doesn't work ...
> >
>
> hi,
> just make two queries (one for english speakers and one for french
> speakers) and INTERSECT the results.
>
> Bye,
> Christian.

This works.

But my guess (based on Christian's first attempt) is that it is not what his teacher is trying to demonstrate.

-- 
Phil Singer                |    psinger1_at_chartermi.net
Oracle DBA
Received on Sat Sep 01 2001 - 23:55:04 CDT

Original text of this message

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