select WCB.ID
from
WageClosingBook WCB,
WageClosingBookUsedDefs WCB_UD
where
(WCB.ID = WCB_UD.Parent_ID) and
(WCB_UD.Definition_ID = :OBJID) and
(WCB.WagePeriod_ID in ({WagePeriodIDList}))Generated by ABRA Software a.s. 27.10.2021 16:34:36