select * from D4_FN_KON_LP_Z d4_fn_kon_lp_z inner join D1_FN_PRAC_FCE d1_fn_prac_fce on d1_fn_prac_fce.idpk = d4_fn_kon_lp_z.idpk_funkce