select (b.Code || '-' || CAST(a.OrdNumber AS VARCHAR(10)) || '/' || c.Code) from BankStatements a,DocQueues b, Periods c, BankStatements2 d where d.Parent_ID = a.ID and a.DocQueue_ID=b.id and a.Period_ID=c.id and d.id=:OBJID
Generated by ABRA Software a.s. 27.10.2021 16:34:08