Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Help calculating bowling average for cricket

$
0
0
Hi all

Ive all but finished my cricket stats database but am stuck with the bowling part, when a bowler fails to complete an over it would look something like:

Overs bowled 12.3

This means they bowled 12 overs and 3 balls, when 6 balls have been bowled the over is completed but to calculate total overs bowled in a season i need to add all the overs and balls bowled together. The problem is scenario below

Match 1 - 12.4 overs
Match 2 - 9.5 overs

Total overs 21.9 overs ??????

Should be 22.3

This is not correct as there arent 9 balls in an over only 6, so when the balls equals 6 it adds another over on the over count and starts again at 0?

Can someone help? to those who have a knowledge of cricket this will make alot more sense.

Viewing all articles
Browse latest Browse all 13329

Trending Articles