Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/03/2017, 12:17
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: Buscar registros con fecha máxima pero no tener en cuenta la hora

Código SQL:
Ver original
  1. SELECT * FROM movidiferidos WHERE modicontrato=785834 AND TRUNC(modifecha)=
  2. (SELECT TRUNC(MAX(modifecha)) FROM movidiferidos
  3. WHERE modicontrato=735834345) ;
__________________
Without data, You are another person with an opinion.
W. Edwads Deming