select A.ID from FirmOffices A left join Firms F on F.ID = A.Parent_ID where (A.OfficeUnique_ID = :OfficeUID) and (F.Firm_ID is null)
Generated by ABRA Software a.s. 27.10.2021 16:34:09