SELECT A.PARENT_ID AS ID FROM WageNoticeEmployees A LEFT JOIN WageNotices B ON A.Parent_ID = B.ID WHERE A.Employee_ID = :EMPLOYEE AND (:ISClosed=' ' OR B.TaskClosed = :ISCLOSED)
Generated by ABRA Software a.s. 27.10.2021 16:34:36