Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/02/2013, 12:36
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: traer ultimo registro de valores repetidos

No lo he probado, pero dime si esto te funciona:
Código MySQL:
Ver original
  1. SELECT t1.numeroserie,
  2.  COUNT(t1.numserie) tot
  3.  FROM (SELECT numeroserie FROM tutabla ORDER BY id DESC)T1
  4.  GROUP BY t1.numeroserie
  5.  HAVING tot > 1
  6.  LIMIT 1