I\'m fairly new to SQL and can\'t seem to get my query doing what I want it to do.
I want the sum of one column based on the occurrence of another condition.
My ta