Bonjour,
j'ai un problème sur cette requête, c'est que pour chaque champs code_int_actr, j'aimerai qu'il me ramène uniquement la dernière valeur grande. en executant ma requète, il me ramène toujours 2 voire 3 valeur par le champs code_int_actr. comment faire pour avoir la dernière valeur?
merci de votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 select max (thd.hico_id), ldc.id_lc, lp.lib_lp, AC.CODE_INT_ACTR,thd.hisd_va_value, thd.hide_id from td_histo tdh, td_histo_details thd, LIGNE_DE_CREDIT ldc, acteur ac, LIGNE_PRODUIT lp where thd.HICO_ID = tdh.hico_id and tdh.id_lc = ldc.id_lc and tdh.id_actr = ac.id_actr and thd.HIDE_ID = 159 and ac.code_int_actr in ('FR_00527', 'FR_00016') AND lp.id_lp = ldc.id_lp group by ldc.id_lc ,lp.lib_lp,AC.CODE_INT_ACTR,thd.hisd_va_value, thd.hico_id, thd.hide_id order by ac.code_int_actr asc
Partager