bonjour,
la version d'oracle utilisée est 8i.

voici mon problème, quand j'essaye de faire l'update suivant, il m'affiche 0 update, alors que si j'execute juste le code en bleu, il me ramène bel et bien une ligne.
j'aimerais avoir votre avis.

update table1
set flag =1
where
(cdsg,RADIC,SERIE,NORDR,CDMONN,DATOPER,NOPER,COPER) in

(

select cdsg,RADIC,SERIE,NORDR,CDMONN,DATOPER,NOPER,COPER
from
(select cdsg,montant,RADIC,SERIE,NORDR,CDMONN,DATOPER,NOPER,COPER,count(flag)
over(partition by cdsg,montant order by datoper,noper) nbr
from table1 where
COPER = 'W22' and
cdsg = 457 and
radic =777125 and
serie =587 and
datoper ='23/05/2006' and
noper =173 and
(cdsg,montant) in (select cdsg,montant*-1 from
table1 where coper='RTD'
and flag=1)
)
where nbr=1

)
je pourrais pas changer le contenu du code, mais j'aimerais juste connaitre pourquoi l'update ne marche pas.

merci