REPLACE INTO falta_histo_mat (id_alu,cod_cur,cod_mat,fec_fal,jus_fal,num_hor,tip_fal) VALUES( 1088970501,(select cod_cur from alumcurso where id_alu= 1088970501), 9,(SELECT fec_cor_tot FROM periodo where id_peri=4),'injust', 2,'t'),( 1088970501,(select cod_cur from alumcurso where id_alu= 1088970501), 9,(SELECT fec_cor_tot FROM periodo where id_peri=4),'injust', 2,'t'),( 1088970501,(select cod_cur from alumcurso where id_alu= 1088970501), 9,(SELECT fec_cor_tot FROM periodo where id_peri=4),'injust', 2,'t'),( 1088970501,(select cod_cur from alumcurso where id_alu= 1088970501), 9,(SELECT fec_cor_tot FROM periodo where id_peri=4),'injust', 2,'t'),( 1088970501,(select cod_cur from alumcurso where id_alu= 1088970501), 9,(SELECT fec_cor_tot FROM periodo where id_peri=4),'injust', 2,'t')