Ver originalselect id from tb_pro where id not in(select id_pr from tb_im im where im.id_pr = tb_pro.id group by id_pr)
Ver originalselect id from tb_pro where id not in(select id_pr from tb_im im group by id_pr)