Using DISTINCT AND SUM together SQL question

Original text of this message