Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/03/2011, 15:22
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 8 meses
Puntos: 39
Respuesta: consulta sql hora ms cercana a la hora actual

Si fuese como dices, asi deberias tener tu codigo:
Código SQL:
Ver original
  1. SELECT f_fin
  2. FROM alarma
  3. WHERE f_fin >= getdate()
  4. ORDER BY f_fin DESC
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.