And I think I have OBP correct. You can easily fix that. And you can see how to derive other stats, as well. No?
Note that AVG needs those back ticks around it `AVG` because AVG is a MySQL keyword.
It can't hurt to put them around other fields.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.