Got some custom table pollers running for wireless anchor status. I want to alert when ALL of the anchors for a give wireless lan controller have rowstatus !=1.
Let's say this is my data
rowid | nodeid | label | rowstatus |
1 | 1011 | LC1 | 1 |
2 | 1011 | LC1 | 1 |
3 | 1023 | LC2 | 0 |
4 | 1023 | LC2 | 0 |
5 | 1023 | LC2 | 0 |
6 | 2011 | LC3 | 1 |
7 | 2011 | LC3 | 1 |
8 | 2011 | LC3 | 1 |
9 | 2011 | LC3 | 1 |
My SQL skill are good enough for simple stuff like find which rows have rowstatus !=1
SELECT NODEID
FROM CUSTOMPOLLERSTATUSTABLE
WHERE POLLIERID = 'EXAMPLE_POLLERID)
AND ROWSTATUS =1 1
but I'm struggling to work our how to return the node id's of the nodes where ALL of the rows for that node have rowstatus !=1