The current Query looks like this!
SELECT [data].[AlertObjects].[Node].[DisplayName] AS [DisplayName],[data].[InstanceSiteId] AS [InstanceSiteId],CAST([data].[timestamp] AS DATE) AS [AlertDate]
FROM orion.alerthistory AS data
WHERE
(((([data].[AlertObjects].[AlertObjectID]) IS NOT NULL) AND (([data].[AlertObjects].[InstanceSiteId]) IS NOT NULL) AND (([data].[AlertObjects].[Node].[NodeID]) IS NOT NULL) AND (([data].[AlertObjects].[Node].[InstanceSiteId]) IS NOT NULL)) AND ((([data].[AlertObjects].[AlertID]) = (270)) AND (([data].[EventType]) = (1)) AND (([data].[AlertObjects].[EntityCaption]) NOT LIKE '%'+('Virtual Memory') + '%')))
WITH NOLOCK
When I try and group by TimeStamp (Alert History), I struggle to get it to only group by the DATE the Alerts Triggered. It will seperate them by TIME too.
Any help would be appreciated!