j avais oublié la requete...
select contrat.numcont_ct NUMCONT,
produit.refer_pr REFPROD,
tiers.desig1_ti||' '||tiers.desig2_ti ASSURE,
contrat.prann_ct PRANN,
contrat.cd_frc FRACT,
contrat.cd_smv DERNMVT,
to_char(contrat.dtef_ct,'DD/MM/YYYY') DATEPOS,
to_char(contrat.dtech_ct,'MM') ECHCE,
adrti.adr1_adt ADRESSE,
adrti.cp_adt CP,
adrti.ville_adt VILLE
FROM apport, ctint, entcontrat, contrat, tiersct, produit, ssmvt, mvt,adrti,tiers
WHERE entcontrat.id_ect = contrat.id_ect
AND numavt_ct = (SELECT MAX (numavt_ct)
FROM contrat
WHERE id_ect = entcontrat.id_ect
AND numali_ct = 0
AND to_char(nvl(dtcrec_ct,dtmod_ct),'YYYYMMDD') <= S
AND to_char(dtef_ct,'YYYYMMDD') <= :FI
AND (to_char(dtef_ct,'YYYYMMDD') >= P OR P=' ')
)
voila c la mais c le début (la requete est plus grande...)