I want to calculate result percentage in SQL from the this data for a each period.
Period Result
1 Green
1 Blue
1 Blue
1 Red
1 Blue
1 Blue
1 Blue
2 Green
2 Green
2 Green
2 Blue
2 Red
2 Red
Expected result ..
Period Result Percentage
1 Blue 72%
1 Green 9%
1 Red 9%
2 Blue 17%
2 Green 50%
2 Red 33%