Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2010, 09:45
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 8 meses
Puntos: 39
Respuesta: Problemas Con Funcion Count?

Código SQL:
Ver original
  1. SELECT Fecha_Ganado, Nombres, COUN(Cod_lider)
  2. FROM tbl_ganar
  3. WHERE CAST(SUBSTRING(Cod_lider, 3, 2) AS INTEGER) <= 12
  4. AND SUBSTRING(Cod_lider, 1, 2) = '01'
  5. GROUP BY Fecha_Ganado, Nombres
  6. ORDER BY Cod_lider
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.