SELECT em.ID FROM Employees em LEFT JOIN WorkingRelations wr ON em.ID = wr.Employee_ID WHERE (em.Hidden='N') and (wr.Hidden='N') and (wr.DateOfBegin$Date <= :EndOfPeriod) and ((wr.DateOfEnd$Date >= :BeginOfPeriod) or (wr.DateOfEnd$Date = 0) or (wr.DateOfEnd$Date is null)) GROUP BY em.ID ORDER BY em.ID /* Vrátí seznam OID zaměstnanců, který mají platný pracovní poměr v odbobí mezi daty BeginOfPeriod a EndOfPeriod*/
Generated by ABRA Software a.s. 27.10.2021 16:34:35