Bonjour,
je travaille sous Oracle 9i,je souhaite executer la requ^te suivante
le problème c'est qu'elle met trop de temp pour s'executer, je suis sûr qu'elle peut être optimiser, et c'est pour cette raison je demande votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 select distinct q3.LIBABR,r3.REPONSE,NULL,NULL,NULL,NULL from PENSOINS.BM_LIB_S lib2, PENSOINS.C_QUESTION q3,PENSOINS.BM_REP_S r3 where lib2.PARENTE like '674,%' and lib2.NIQ = q3.NIQ and lib2.NILIB = r3.NILIB and lib2.NIQSUP is NULL and lib2.NILIBSUP is NULL and q3.NIQ not in (select lib1.NIQSUP from PENSOINS.BM_LIB_S lib1 where lib1.PARENTE like '674,%') and r3.NILIB not in (select lib1.NILIBSUP from PENSOINS.BM_LIB_S lib1 where lib1.PARENTE like '674,%')
voici la structure des tables et champs concernés par cette requête:
C_QQUESTION (NIQ,LIBABR)
BM_REP_S (NIR,REPONSE,NILIB)
BM_LIB_S (NILIB,NIQ,NIQSUP,NIRSUP,PARENTE)
je vous remercie d'avance.
Partager