Skip to content

Commit

Permalink
Create DW_EventsByNumber.sql 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored May 7, 2024
1 parent 84acfde commit 94fecb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SQL Queries/Data Warehouse/DW_EventsByNumber.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--Most common events by event number and raw event description (this will take a very long time to run but it shows us not only event ID – but a description of the event to help understand which MP is the generating the noise)
SELECT top 100 EventDisplayNumber, Rawdescription, COUNT(*) AS TotalEvents
FROM Event.vEvent evt
inner join Event.vEventDetail evtd on evt.eventoriginid = evtd.eventoriginid
GROUP BY EventDisplayNumber, Rawdescription
ORDER BY TotalEvents DESC

0 comments on commit 94fecb8

Please sign in to comment.