Subject | EXISTS translation |
---|---|
Author | Alan McDonald |
Post date | 2008-07-29T12:54:19Z |
This was was my old FB1.5 query:
SELECT COUNT(*) FROM ERSINVOICE WHERE ERSINVOICE.FKBATCH IN
(SELECT ERSVOUCHERBATCH.ID FROM ERSVOUCHERBATCH WHERE
ERSVOUCHERBATCH.FKEXPORTLOG=ERSBATCHESLOG.ID)
can someone throw this into the EXISTS syntax? I'm having a brain explosion
I'm tryin to get
THE NUMBER OF INVOICES
WHERE THE INVOICE BATCH NUMBER
IS IN THE LIST OF BATCH IDS WHICH ARE IN THE BATCH LOG
regards
Alan McDonald
SELECT COUNT(*) FROM ERSINVOICE WHERE ERSINVOICE.FKBATCH IN
(SELECT ERSVOUCHERBATCH.ID FROM ERSVOUCHERBATCH WHERE
ERSVOUCHERBATCH.FKEXPORTLOG=ERSBATCHESLOG.ID)
can someone throw this into the EXISTS syntax? I'm having a brain explosion
I'm tryin to get
THE NUMBER OF INVOICES
WHERE THE INVOICE BATCH NUMBER
IS IN THE LIST OF BATCH IDS WHICH ARE IN THE BATCH LOG
regards
Alan McDonald