Ver Mensaje Individual
  #2  
Antiguo 11-09-2008
[maeyanes] maeyanes is offline
Capo de los Capos
 
Registrado: may 2003
Ubicación: Campeche, México
Posts: 2.732
Reputación: 24
maeyanes Va por buen camino
Hola...

Checa la ayuda de LIMIT

Tu SQL podría quedar así:

Código SQL [-]
SELECT c.CIE10, COUNT( i.COD_INGRESO ) FROM ingreso i, cie10 c WHERE (c.COD_CIE10 = i.COD_CIE10) and
  (i.FECHA >= :rd1) and (i.FECHA <= :rd2) GROUP BY c.CIE10 ORDER BY c.CIE10 LIMIT 10


Saludos...
Responder Con Cita