Ver Mensaje Individual
  #2  
Antiguo 16-06-2008
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Quizá así:

Código SQL [-]
SELECT top 1 *
FROM Coleta where matricula = '100423' and data = #27/05/2008#  order by data_hora desc

union

SELECT top 1 *
FROM Coleta where matricula = '100423' and data = #28/05/2008#  order by data_hora

// Saludos
Responder Con Cita