Other statistical data from the FBI:
Active Shooter Incidents 20-Year Review, 2000-2019 — FBI
Please, please don't delude yourself or others into believing you are going to be the lucky good guy with a gun who saves the day. The rate of that actually happening in real life is incredibly low.
As anyone worth their salt will tell you in an active shooter training, your first move in an active shooter situation should be to
run. If running is not an option,
hide. Only if you cannot run and cannot hide should
fighting be your last, desperate resort.