This is interesting way of approaching it. In my environment I have a bunch of alerts enabled and some of them disabled, but they are still present in the list of alerts. By running the above SQL query - how do I keep track of which alerts have been enabled before I have disabled them? ... I feel that I will need some kind of another axillary table which will hold temporary information about those alerts which were disabled in the first place. Hmmm... sounds like unnecessary complexity... any other ideas?