I'm not familiar with the tables involved, but I think what you want is:
SELECT [DateTime] ,COUNT([IPAddress]) FROM [Traps] where [TrapType] like '%NSG9000%';
GROUP BY [DateTime]
ORDER BY [DateTime] ASCENDING
I'm not familiar with the tables involved, but I think what you want is:
SELECT [DateTime] ,COUNT([IPAddress]) FROM [Traps] where [TrapType] like '%NSG9000%';
GROUP BY [DateTime]
ORDER BY [DateTime] ASCENDING