How shall I design sql statement to also calculate the number of devices within every User-Agent ID?
I work in MS Log Parser Studio (LOGPARSER), working on programming different query Exchange logs (IIS W3C LOG) to compile statistics of mobile devices.
This is the query:
SELECT TO_STRING(To_timestamp(date, time), 'MM-dd-yyyy') as Day, cs(user-agent) as
UserAgent /* Count(MyDeviceId as DeviceId) as NrOfSameDevice
USING
EXTRACT_VALUE(cs-uri-query,'DeviceId') as MyDeviceId */
FROM '[LOGFILEPATH]'
WHERE cs-uri-stem LIKE '%Microsoft-Server-ActiveSync%'
GROUP BY Day, UserAgent
ORDER BY Day
Result of this query is: