Write a query to count occurrences of specific events in a dataset.
Use the event_log table and count these event types: equipment_alarm, batch_started, and batch_completed. Exclude all other event types and NULL event types.
event_type and event_count.event_count descending, then event_type ascending to break ties.| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| event_type | VARCHAR(50) | Name of the recorded event |
| occurred_at | TIMESTAMP | Time when the event occurred |