Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/05/2011, 11:32
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Query para traer registros por fecha

Eso es fácil, te bastará con ordenar por fecha descendente y hacer un limit 1
SELECT id, camponick FROM tutabla WHERE id = variable ORDER BY fecimp DESC limit 1
Hay más formas, pero dinos si esta te vale.