SELECT cenik.kod_zbozi, Obj_polozky.*, Obj_header.cis_eob FROM Obj_header,Obj_polozky , cenik WHERE (Obj_polozky.id_cnk=cenik.id_cenik) AND (Obj_header.id_dobj=Obj_polozky.id_dobj) AND (Obj_header.DAT_ACT>=Obj_header.DAT_EXP) AND (Obj_header.zpracovana<>NONEDATE) AND (Obj_header.potvrzena=true)