orangeblue
Programmer
ok i have to create a db that calculates the averages of batemsn in cricket
so the forumla is Avg=totalruns / innings
the problem is that inning can be 0 in which case
Avg=totalruns
so i am confused how i goabout doing this.
so this is the basic if statement
if innings>0 then
Avg=totalruns / innings
else
Avg=totalruns
end if
please can anyone help
Hesh
so the forumla is Avg=totalruns / innings
the problem is that inning can be 0 in which case
Avg=totalruns
so i am confused how i goabout doing this.
so this is the basic if statement
if innings>0 then
Avg=totalruns / innings
else
Avg=totalruns
end if
please can anyone help
Hesh