The SUM statement totals the values of Salary for each BY group and for the whole report.
sum salary;