I have a table that has eventid (alarm Event id) and eventtype (active = 1, Ack = 2, unack = 0
). I would like to show a count of unacknowledged alarms.
SELECT count( DISTINCT eventid) FROM alarm_events where eventtype != 2
Not sure how i filter out the eventid that has been acknowledged