par
jay64 » 19 févr. 2009, 13:17
Merci beaucoup pour cette aide précieuse, c'est parfait !
----------------------------------------------------
Dans la suite de mon travail, je reprends une vieille requête que j'avais fait en son temps et je dois la modifier toutjours dans le but de réduire le nombre d'enregistrements retournés.
J'ai donc ceci :
Code : Tout sélectionner
$query_ResultJoueurs = sprintf("
SELECT prono_Voteur.NbPointsJoueursL1_Encours, prono_Voteur.Pseudo, prono_Voteur.IdVoteur, prono_Fusion_Voteur_MatchLigue1.IdMatch, prono_Fusion_Voteur_MatchLigue1.NbPointsMarques, prono_Fusion_Voteur_MatchLigue1.BonusCalcule, prono_Fusion_Voteur_MatchLigue1.ScoreEquipeDom, prono_Fusion_Voteur_MatchLigue1.ScoreEquipeVis, prono_Fusion_Voteur_MatchLigue1.Buteur1Dom, prono_Fusion_Voteur_MatchLigue1.Buteur2Dom, prono_Fusion_Voteur_MatchLigue1.Buteur3Dom, prono_Fusion_Voteur_MatchLigue1.Buteur4Dom, prono_Fusion_Voteur_MatchLigue1.Buteur5Dom, prono_Fusion_Voteur_MatchLigue1.Buteur6Dom, prono_Fusion_Voteur_MatchLigue1.Buteur7Dom, prono_Fusion_Voteur_MatchLigue1.Buteur8Dom, prono_Fusion_Voteur_MatchLigue1.Buteur9Dom, prono_Fusion_Voteur_MatchLigue1.Buteur1Vis, prono_Fusion_Voteur_MatchLigue1.Buteur2Vis, prono_Fusion_Voteur_MatchLigue1.Buteur3Vis, prono_Fusion_Voteur_MatchLigue1.Buteur4Vis, prono_Fusion_Voteur_MatchLigue1.Buteur5Vis, prono_Fusion_Voteur_MatchLigue1.Buteur6Vis, prono_Fusion_Voteur_MatchLigue1.Buteur7Vis, prono_Fusion_Voteur_MatchLigue1.Buteur8Vis, prono_Fusion_Voteur_MatchLigue1.Buteur9Vis, prono_Fusion_Voteur_MatchLigue1.HorodatageVote, prono_MatchLigue1.HorodatageMatch
FROM prono_Parametres, prono_Voteur
INNER JOIN (prono_MatchLigue1
INNER JOIN prono_Fusion_Voteur_MatchLigue1
ON prono_MatchLigue1.IdMatch = prono_Fusion_Voteur_MatchLigue1.IdMatch)
ON prono_Voteur.IdVoteur = prono_Fusion_Voteur_MatchLigue1.IdVoteur
WHERE (((prono_Fusion_Voteur_MatchLigue1.IdMatch)=%s)) ORDER BY prono_Voteur.NbPointsJoueursL1_Encours DESC , prono_Voteur.Pseudo; ", $colname_ResultJoueurs);
et je souhaite afficher uniquement les résultats pour un IdVoteur = 2 AND un IdVoteur = 3
Je ne sais pas du tout où le positionner au milieu de cette requete comprenant des jointures.
Merci encore !
Jérôme
Merci beaucoup pour cette aide précieuse, c'est parfait !
----------------------------------------------------
Dans la suite de mon travail, je reprends une vieille requête que j'avais fait en son temps et je dois la modifier toutjours dans le but de réduire le nombre d'enregistrements retournés.
J'ai donc ceci :
[code]$query_ResultJoueurs = sprintf("
SELECT prono_Voteur.NbPointsJoueursL1_Encours, prono_Voteur.Pseudo, prono_Voteur.IdVoteur, prono_Fusion_Voteur_MatchLigue1.IdMatch, prono_Fusion_Voteur_MatchLigue1.NbPointsMarques, prono_Fusion_Voteur_MatchLigue1.BonusCalcule, prono_Fusion_Voteur_MatchLigue1.ScoreEquipeDom, prono_Fusion_Voteur_MatchLigue1.ScoreEquipeVis, prono_Fusion_Voteur_MatchLigue1.Buteur1Dom, prono_Fusion_Voteur_MatchLigue1.Buteur2Dom, prono_Fusion_Voteur_MatchLigue1.Buteur3Dom, prono_Fusion_Voteur_MatchLigue1.Buteur4Dom, prono_Fusion_Voteur_MatchLigue1.Buteur5Dom, prono_Fusion_Voteur_MatchLigue1.Buteur6Dom, prono_Fusion_Voteur_MatchLigue1.Buteur7Dom, prono_Fusion_Voteur_MatchLigue1.Buteur8Dom, prono_Fusion_Voteur_MatchLigue1.Buteur9Dom, prono_Fusion_Voteur_MatchLigue1.Buteur1Vis, prono_Fusion_Voteur_MatchLigue1.Buteur2Vis, prono_Fusion_Voteur_MatchLigue1.Buteur3Vis, prono_Fusion_Voteur_MatchLigue1.Buteur4Vis, prono_Fusion_Voteur_MatchLigue1.Buteur5Vis, prono_Fusion_Voteur_MatchLigue1.Buteur6Vis, prono_Fusion_Voteur_MatchLigue1.Buteur7Vis, prono_Fusion_Voteur_MatchLigue1.Buteur8Vis, prono_Fusion_Voteur_MatchLigue1.Buteur9Vis, prono_Fusion_Voteur_MatchLigue1.HorodatageVote, prono_MatchLigue1.HorodatageMatch
FROM prono_Parametres, prono_Voteur
INNER JOIN (prono_MatchLigue1
INNER JOIN prono_Fusion_Voteur_MatchLigue1
ON prono_MatchLigue1.IdMatch = prono_Fusion_Voteur_MatchLigue1.IdMatch)
ON prono_Voteur.IdVoteur = prono_Fusion_Voteur_MatchLigue1.IdVoteur
WHERE (((prono_Fusion_Voteur_MatchLigue1.IdMatch)=%s)) ORDER BY prono_Voteur.NbPointsJoueursL1_Encours DESC , prono_Voteur.Pseudo; ", $colname_ResultJoueurs);
[/code]
et je souhaite afficher uniquement les résultats pour un IdVoteur = 2 AND un IdVoteur = 3
Je ne sais pas du tout où le positionner au milieu de cette requete comprenant des jointures.
Merci encore !
Jérôme