ActionIQ Interview Question

Selecting sums from a table