Hi,
i just need to calculate the percentage that application is available during a given date. I am basically calculating the scores and availability so i am already calculating the scores but would like to add the availability using this methodology:
i have column called Availability:
Availability
1
1
1
0
0
0
1
1
Note, 1 means application is available and 0 means it is not available. So if i take the Avg of all these 8 entries, then my score will be about 62.5%. So how would i calculate if i just need to know what was the percentage that the application was up during that day using sql? thanks
Select 100 * Avg(Cast(Availability as Decimal)) from <Table>
The cast may not actually be needed, but try it both ways