Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/06/2010, 12:38
Cenan
 
Fecha de Ingreso: junio-2010
Mensajes: 2
Antigüedad: 13 años, 11 meses
Puntos: 0
Exclamación Respuesta: Consulta en access a traves de .NET

EDITO: ya esta, se hace con una correlacionada
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"select nombree,nombrej,fecha from juega j where NombreE = 'Athletic de Bilbao' and fecha= (select max(fecha) from juega g where g.nombrej=j.nombrej)"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Estas 3 no tiran:

"select NombreJ,max(fecha) from Juega group by NombreJ,nombree having NombreE ='Athletic de Bilbao'"

"select NombreJ,max(fecha) from Juega group by NombreJ having NombreE ='Athletic de Bilbao'"

"select NombreJ,max(fecha) from Juega group by NombreJ having max(Fecha) and NombreE ='Athletic de Bilbao'"


Ninguna de las tres funciona, o da 3 resultados o da error :S

Gracias igualmente

Última edición por Cenan; 14/06/2010 a las 12:59