• SELECT COALESCE(GroupName,'Total') AS [GroupName],SUM(NumberOfCases) AS [NumberOfCases]

    FROM #TempTable

    GROUP BY GroupName WITH ROLLUP

    ORDER BY GROUPING(GroupName) ASC

    Far away is close at hand in the images of elsewhere.
    Anon.