$sts=$bdd->select('select si.id, ti.libelle || \' <br /><br /> \' || si.libelle libelle FROM statut_intervenant si join type_intervenant ti on ti.id = si.type_intervenant_id');
foreach($stsas$st){
$this->statuts[$st['ID']]=$st['LIBELLE'];
}
$sql="
with idata as (select
intervenant_id, listagg(cc.t, ', ') within group( order by cc.t) tbls
from
(
select count(*) || ' AGREMENT' t, intervenant_id from AGREMENT where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' CONTRAT' t, intervenant_id from CONTRAT where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' INTERVENANT_DOSSIER' t, intervenant_id from INTERVENANT_DOSSIER where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' MODIFICATION_SERVICE_DU' t, intervenant_id from MODIFICATION_SERVICE_DU where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' PIECE_JOINTE' t, intervenant_id from PIECE_JOINTE where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' SERVICE' t, intervenant_id from SERVICE where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' SERVICE_REFERENTIEL' t, intervenant_id from SERVICE_REFERENTIEL where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' VALIDATION' t, intervenant_id from VALIDATION where histo_destruction is null GROUP BY intervenant_id
union all select count(*) || ' FORMULE_RESULTAT' t, intervenant_id from FORMULE_RESULTAT where 1=1 GROUP BY intervenant_id