So, this will be every Microsoft monthly update from now on based on the last few months vuln rate
I know you’ve specifically asked for a SQL solution, and I probably do have something I could provide if needed although this will require some digging on my part.
Before I do that, I’ll play devils advocate a bit - are you already approaching vulnerabilities based on risk (which is better than approaching it by count)? A couple of options, if you don’t specifically want a SQL solution, are the built-in Top Remediations with Details report or using Remediation Projects. These work based on biggest impact to risk rather than count specifically but these do go hand-in-hand a lot of the time.
If you do specifically need a SQL solution then let me know.
sorry, i didn’t receive an alert that you’d replied to my earlier message. I’ll have a look at what reports I have and will let you know (although they may well be based on reports already in the GitHub linked by CW in this thread so you might already have something)