Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/01/2010, 16:10
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Mostrar el ultimo registro

Si entendí bien sería algo así

Código SQL:
Ver original
  1. SELECT a.dni,a.fecha FROM antivirusdempresa a
  2. INNER JOIN (SELECT dni,MAX(fecha)fecha_mayor FROM
  3. antivirusdempresa GROUP BY dni)t1
  4.  ON (a.dni,a.fecha)=(t1.dni,t1.fecha_mayor);

Nos cuentas como te va.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming