You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Selects the top 100 records from the result set
17
18
SELECT TOP 100
18
19
evt.EventDisplayNumber, -- Display number of the event
19
-
evtd.RawDescription, -- Raw description of the event
20
+
evtd.RenderedDescription, -- Raw description of the event
20
21
evtlc.ComputerName, -- Name of the computer logging the event
21
22
COUNT(*) AS TotalEvents, -- Total number of events aggregated by display number, description, and computer name
22
23
DATEDIFF(DAY, MIN(evt.DateTime), MAX(evt.DateTime)) +1AS DaysOfData -- Calculates the span of days between the earliest and latest event dates for each group
0 commit comments