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.
Douglas Wilson — — source: Informix-list mailing list archive (1991-1998)
ccliu wrote:
I think what you want is:
select ...
into ...
from LotJob
where LotJobSequence = (
> SELECT MAX(LotJobSequence)
> FROM LotJob
> WHERE Lot = o_Lot
>
);
This is still like doing two queries and probably no faster, but at
least its in one statement.
--
Sincerly,
Doug Wilson(dougw@amgen.com)
*** The opinions expressed here are my own and not neccessarily ***
*** that of a rational human being . . . *************
*** Disclaimer: These are the opinions of the poster not Amgen Inc.***
Your privacy choices
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.