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

Home -> Community -> Usenet -> c.d.o.tools -> Re: sql aggregate question

Re: sql aggregate question

From: Doug Edmunds <dae_alt3_at_juno.com>
Date: 17 Jan 2001 16:49:19 PDT
Message-ID: <Xns902CA6E97edmundspacifiercom@199.2.117.165>

Myron Wintonyk <mwintony_at_med.ualberta.ca> wrote in <3A663A39.F777BDCC_at_med.ualberta.ca>:

>select team, name, score from players A
> where score = ( select max( score)
> from players B
> where A.PLAYER = B.PLAYER
> and A.TEAM = B.TEAM );
>

Even after I changed your line

   where A.PLAYER = B.PLAYER
to

   where A.NAME = B.NAME (there's no field named player) it still doesn't work for me.
That sql produces a list of all the names, not just the top scorers.

Received on Wed Jan 17 2001 - 17:49:19 CST

Original text of this message

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