Can someone help me in converting the below mentioned original table to table required? I think I have done it before, it's just I am unable to do it now. Thanks for the help.
Original Table
year school program count
2014 A XYZ 3
2014 A DEF 1
2014 B XYZ 2
2014 B DEF 4
2014 B GHI 5
2014 C XYZ 3
Table Required
YEAR SCHOOL XYZ DEF GHI
2014 A 3 1 0
2014 B 2 4 5
2014 C 3 0 0