Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/03/2017, 12:49
Martokingv
 
Fecha de Ingreso: octubre-2006
Mensajes: 6
Antigüedad: 17 años, 6 meses
Puntos: 0
Respuesta: Maximo valor Mysql

Por este motivo salen 2 en 2017

SELECT estado, count(estado) as total from `FechaControl` where `vercodigoproyecto`= (SELECT MAX(vercodigoproyecto) from `FechaControl` WHERE YEAR(fecha)='2016') group by `estado`