Bonjour,

Voici la reqûete qui me pose problème

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
	update R_TABREF_2_CORRESP_SP ta
        set (ta.C_RATING_INT, ta.notch_no) = (
                                  select tmp.note_interne_fine, tmp.rang_interne_fine
                                         from TMP_FLUX tmp
                                         where trim(tmp.sp_rang_fine) = 'a'--ta.rang_sp
                                         and trim(tmp.sp_note_fine) = 'B-'--ta.c_rating_sp
                                         and rownum =1
                                  order by tmp.note_interne_fine asc)
En fait, j'aimerais faire un update sur une table en passant par un sélect avt.

Ce select me renvoit toujours trois enregistrements :
B----a+
B----a
B----a-

Et ce que je souhaite, c'est insérer dans ma table le champs B----a.

Comment le sélectionner, lui et lui seul pour pouvoir l'insérer via l'update ?

Merci