I have a table like this
What I am trying to achieve is weighted rating. For e.g., in this table we have five star as 3, four star as 1, three star as 1, two star as 1 and one star as 0. So the weighted rating is
((5x3) + (4x1) + (3x1) + (2x1) + (1x0)) / (3+1+1+1) = 4
for service uuid
ff0177fe. How can I achieve this ?