Haber Intenta con
Código sql:
Ver originalSELECT SUM(1),
(CAST(YEAR(CLI_FEC) AS VARCHAR) + ' ' + DATENAME(MONTH,CLI_FEC) + ' ' + CAST(DAY(CLI_FEC) AS VARCHAR)) AS FEC
FROM PRUEBA
GROUP BY FECHA
ORDER BY MONTH(FECHA) ASC
-- o si no
SELECT COUNT(FECHA),
(CAST(YEAR(CLI_FEC) AS VARCHAR) + ' ' + DATENAME(MONTH,CLI_FEC) + ' ' + CAST(DAY(CLI_FEC) AS VARCHAR)) AS FEC
FROM PRUEBA
GROUP BY FECHA
ORDER BY MONTH(FECHA) ASC