I’m pulling some data out of a MSSSQL database using C# that keeps track of employees and their hours worked. I’m simply using a regular simple select statement to pull out the relevant data. I’d like to be able to summarise the data (not sure if I’m using the correct word).
For example, the text in black in the following image is what I have at the moment, but I’d like to be able to add in the text in red somehow. What would be the best approach to doing this? Splitting up into smaller queries perhaps?

For SQL Server 2008+ you can use
GROUPIN SETS. In your example, try this: