• cast the inner sum as decimal then case the whole output as varchar