SELECT 1 FROM rdb$database
where
exists
( SELECT sd2.id
FROM
storedocuments2 sd2
where
sd2.store_id=:StoreOID and
sd2.storecard_id=:StoreCardOID and
(sd2.FlowType IN ('20', '24', '25', '28', '37', '39')))Generated by ABRA Software a.s. 27.10.2021 16:34:11