Subject | Re: [ib-support] Temporary Tables in SP |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2003-05-08T03:07:40Z |
On 7 May 2003 at 13:32, Tim Ledgerwood wrote:
WHERE BATCHNO=(SELECT MAX(BACHNO) FROM BATCH WHERE BATCH_OPEN=1)
This query will give you exactly the same result as your sequence.
I also think that it can work in Sybase too.
SY, Dimitry Sibiryakov.
>Which would give me a singleton result that contains all the data fromSELECT * FROM BATCH
>the row where BATCH_OPEN = 1 and BATCHNO is the highest batch number
>in the temporary table.
WHERE BATCHNO=(SELECT MAX(BACHNO) FROM BATCH WHERE BATCH_OPEN=1)
This query will give you exactly the same result as your sequence.
I also think that it can work in Sybase too.
SY, Dimitry Sibiryakov.