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: How does SELECT work?

Re: How does SELECT work?

From: Raffaello Galli <galli_at_harry.molgen.mpg.de>
Date: Mon, 8 Jul 2002 16:59:41 +0200
Message-ID: <Pine.OSF.4.31.0207081658210.5887-100000@harry.molgen.mpg.de>


On Mon, 8 Jul 2002, Konrad Den Ende wrote:

> Say that we have two tables COFFEES and SUPPLIERS
> (yes, from Suns site). When i execute this:
>
> "Select * COFFEES, SUPPLIERS"
>
> and print the results (only one column - Cof_Name) i get
> all the names of coffees (which i expected) BUT three
> times!
>
> As there are three rows in SUPPLIERS i start to suspect
> that the command above gives me result of EVERY row in
> table 1 FOR EVERY row in table 2.

Exactly.

> The question: Have i done something stupid or is my suspicion
> correct?

Why don' you use some conditions after the keyword "WHERE" ?

 Raffaello Received on Mon Jul 08 2002 - 09:59:41 CDT

Original text of this message

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