Re: SQL question
From: Art S. Kagel <kagel_at_bloomberg.com>
Date: 1998/05/11
Message-ID: <355775BF.4718_at_bloomberg.com>#1/1
Date: 1998/05/11
Message-ID: <355775BF.4718_at_bloomberg.com>#1/1
Guillermo Labatte wrote:
>
> Hi,
> I'm using online 5.07 and I have a little problem here. I need to submit a
> query like this:
>
> select * from tabA
> where
> tabA.colX||tabA.colY=(select max(tabB.colX||tabB.coly)
> from tabB where ....)
create temp table fred (
int rownum,
char colx(10),
char coly(10 );
insert into fred
select rowid, colx, coly
from tabA;
select a.*
from tabA a, fred f
where a.rowid = f.rownum
and f.colx||f.coly= (select max(tabB.colX||tabB.coly)
from tabB where ....);
Art S. Kagel Received on Mon May 11 1998 - 00:00:00 CEST