Bonjour,
j'ai cette requête avec plusieurs jointures et qui contient plusieurs select,j'ai utilisé "UNION" pour faire ça et je me demandais s'il y'avait moyen d'enlever les plusieurs select et l'union et avoir un simple select ?
je sais pas rendre ça plus 'pro'..
merci d'avance !
voici ma requete :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 select A.libellé from table1 A LEFT OUTER JOIN table2 B ON A.id=B.id WHERE B.cl1='CLI' and B.cl2=165 UNION select A.libellé from table3 A LEFT OUTER JOIN table4 B ON A.id=B.id where B.cl3= 'AAB' and B.cl2=165 and B.cl4 = 'A8Y' UNION select A.libellé from table5 A LEFT OUTER JOIN table6 B ON A.id=B.id where B.cl2=165 and B.cl5 = 'DUPOND'
Partager