I've got a database of pitchers and their innings pitched... now I've got to create a script that updates/inserts their career statistics into the database when their profile page is loaded.
Say a pitcher pitched 5.2 innings one year, and 5.2 the next year... when I add those two together to insert into the db, it's doing to come out as 10.4 innings pitched, when it should be 11.1.
Another example...
2.2 innings
2.1 innings
2.2 innings
It's going to come out as 6.5, obviously if I'm just adding, instead of 7.2... any idea how I should go about doing this? kinda stuck and have been putting off the pitching career stats for a month due to the innings problem.