V
Vicente Rodriguez Eguibar
Hi group,
Last post wasn't succesfully, maby because I didn't show any "effort" trying
to reach my goal.
I'm trying to get a list with the highest average from each player, but when
I include the date the result becomes too long and each player is showed
several times with his highest average each date. I'm becoming crazy and
can't find the solution. This is the most I can get:
SELECT Jugadores.FirstName, Equipos.Nom_Equipo, Fechas.Fecha_jornada,
Max(Promedios.Prom_Jugador) AS MaxOfProm_Jugador
FROM Equipos INNER JOIN (Fechas INNER JOIN (Jugadores INNER JOIN Promedios
ON Jugadores.ID_Jugador = Promedios.ID_Jugador) ON Fechas.ID_Fecha =
Promedios.ID_Fecha) ON Equipos.ID_Equipos = Jugadores.ID_Equipos
GROUP BY Jugadores.FirstName, Equipos.Nom_Equipo, Fechas.Fecha_jornada
ORDER BY Max(Promedios.Prom_Jugador) DESC;
If I remove the "Fechas.Fecha_Jornada" (Dates.Date_Played) field I get
exactly what I need. Please help me, I'm starting to get fustrated.
Thanks in advance.
Vicente Rodriguez Eguibar
MCSE #31507
Last post wasn't succesfully, maby because I didn't show any "effort" trying
to reach my goal.
I'm trying to get a list with the highest average from each player, but when
I include the date the result becomes too long and each player is showed
several times with his highest average each date. I'm becoming crazy and
can't find the solution. This is the most I can get:
SELECT Jugadores.FirstName, Equipos.Nom_Equipo, Fechas.Fecha_jornada,
Max(Promedios.Prom_Jugador) AS MaxOfProm_Jugador
FROM Equipos INNER JOIN (Fechas INNER JOIN (Jugadores INNER JOIN Promedios
ON Jugadores.ID_Jugador = Promedios.ID_Jugador) ON Fechas.ID_Fecha =
Promedios.ID_Fecha) ON Equipos.ID_Equipos = Jugadores.ID_Equipos
GROUP BY Jugadores.FirstName, Equipos.Nom_Equipo, Fechas.Fecha_jornada
ORDER BY Max(Promedios.Prom_Jugador) DESC;
If I remove the "Fechas.Fecha_Jornada" (Dates.Date_Played) field I get
exactly what I need. Please help me, I'm starting to get fustrated.
Thanks in advance.
Vicente Rodriguez Eguibar
MCSE #31507