select max(sd.docdate$date) from storedocuments2 sd2 join storedocuments sd on sd.id = sd2.parent_id where sd2.store_id = :STORE_ID AND sd2.storecard_id = :STORECARD_ID
Generated by ABRA Software a.s. 27.10.2021 16:34:12