I have the following query :
SELECT DISTINCT
NoEconomico
,count(NoEconomico) AS Totales
FROM prm_FEMSA_IndicadoresTelemetria
WHERE RPMEventos <> 0
AND AccountId = 9159
AND FechaInicio BETWEEN '2016-11-27'
AND '2016-12-31'
AND CeEmplazamiento LIKE 'Celaya'
GROUP BY NoEconomico
That throws me the following data:
**NoEconomico Totales**
CL0201/CEL10017 2
RCL018/CEL17698 5
RCL023/CEL10940 3
RCL026/CEL10931 2
RCL031/CEL10934 2
RCL033/CEL8243 4
RCL036/CEL17705 5
RCL042/CEL10945 3
RCL047-RCL048/CEL6957 5
RCL049-RCL050/CEL11449 5
RCL056/CEL8139 2
RCL102/CEL17695 1
RCL103/CEL10941 5
RCL105/CEL10939 1
RCL109/CEL10946 3
RCL113/CEL17703 2
RCL115/CEL17701 5
RCL122/CEL9986 1
RCL123/CEL6955 2
RCL135/CEL10932 3
RCL140/CEL17704 2
RCL141/CEL10938 2
RCL144/CEL17699 5
RCL145/CEL17700 5
RCL146/CEL11462 5
RCL154/CEL10935 3
RCL155/CEL17696 4
RCLD01/CEL10949 1
RCLTC2/CEL17702 5
RESERVA/CEL16138 2
RESERVA/CEL16177 1
RESERVA/CEL9897 3
RESERVA/CEL9927 2
RTL264/CEL18253 1
My question is, how can I do it to tell me the total of the rows (records), but without adding the totals, that is, the NoEconomico
. In total I would be counting 34 records, I hope I explained.
My desired result would be like this:
CeEmplazamiento Total
Celaya 34