I do not know how to properly setup a table while asking a question, but this one is fairly simple so I should be able to explain it anyway.
I have a database such as:
Parent Type Value
A blue 35
A red 65
B blue 23
C blue 22
C blue 35
C yellow 3
What I need is to know is what percentage of each color each parent has, based on the value.
I.e. the parent A has a total value of 35+65 = 100. What I need to obtain is a new column named value percentage with 35% in the blue row and 65% in the red row.
Thank you!