Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
David Tucker — — source: Informix-list mailing list archive (1991-1998)
Using 4GL versoin 4.1
Can you declare a cursor that joins a TEMP tables with a table that exits in
the database?
i.e.
declare q_curs cursor for
select key, count(*) t1tot
from table1
group by key
into temp x;
select key, x.t1tot
from table2, x
where table2.key = x.key
↪ replying to David Tucker
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
David Tucker wrote:
>
> Using 4GL versoin 4.1
>
> Can you declare a cursor that joins a TEMP tables with a table that exits in
> the database?
>
> i.e.
>
> declare q_curs cursor for
> select key, count(*) t1tot
> from table1
> group by key
> into temp x;
> select key, x.t1tot
> from table2, x
> where table2.key = x.key
Sure. Works like a charm. (This one you could just try. :^) )
Art S. Kagel
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.