Bonjour,
J'ai un petit soucis avec un ORDER BY. J'ai une table qui contient plusieurs champs dont un qui s'appel "Position" et qui peut avoir 4 valeurs différentes :
Goal, Defenseur, Milieu ou Attaquant. Je souhaiterais faire une requete de type select comme celà :
mais je ne vois pas comment faire :'(
Code : Sélectionner tout - Visualiser dans une fenêtre à part select distinct(PLAYER_FULLNAME) from CL.CL_F24_EXPLORER_STEP2 where team_name = 'Lyon' and Game_ID = '320' and PLAYER_FULLNAME NOT IN (select PLAYER_FULLNAME from CL.CL_F24_EXPLORER_STEP2 where team_name = 'PSG' and Game_ID = '320' AND EVENT_PLAYERON = '1') ORDER BY POSITION=Goal, POSITION=Defenseur, Position=Milieu, Position=Attaquant
Quelqu'un peut-il m'éclairer ?
Merci d'avance.
DeWaRs
Partager