bonsoir
j'ai ceci dans mes archives
a essayer
/* liste les individus avec les événements individuels ou familiaux ayant un acte déclaré trouvé mais sans média lié  */
select i.cle_fiche
      ,i.nom
      ,i.prenom
      ,d.ref_eve_lib_long as EVENEMENT
      ,e.ev_ind_date_writen AS "DATE"
from evenements_ind e
     inner join individu i on i.cle_fiche=e.ev_ind_kle_fiche
     inner join ref_evenements d on d.ref_eve_lib_court=e.ev_ind_type
where e.ev_ind_acte=1
  and i.kle_dossier=x    /* le bon n° de dossier */
  and not exists (select * from media_pointeurs p
            where p.mp_pointe_sur=e.ev_ind_clef
            and p.mp_table='I'
            and p.mp_type_image='A')
union
select i.cle_fiche
      ,i.nom
      ,i.prenom
      ,d.ref_eve_lib_long
      ,f.ev_fam_date_writen
from evenements_fam f
     inner join t_union u on u.union_clef=f.ev_fam_kle_famille
     inner join individu i on i.cle_fiche=u.union_mari
     inner join ref_evenements d on d.ref_eve_lib_court=f.ev_fam_type
where f.ev_fam_acte=1
  and i.kle_dossier=4
  and not exists (select * from media_pointeurs p
            where p.mp_pointe_sur=f.ev_fam_clef
            and p.mp_table='F'
            and p.mp_type_image='A')
order by 2 collate FR_FR
        ,3 collate FR_FR
bon usage