This is showing the details I am looking for. Is there a way to show the totals for the clients for 418 and totals for 417?SELECT NAME.Nickname1, NAME_1.Nickname1 AS Expr1, SLPTRANS.ActyExpID, SLPTRANS.TimeSpent / 3600 AS HoursFROM CUSTOMC INNER JOIN NAME AS NAME_1 ON CUSTOMC.RecordIDQ = NAME_1.RecordID INNER JOIN NAME ON CUSTOMC.ControllerQ = NAME.RecordID INNER JOIN SLPTRANS ON CUSTOMC.RecordIDQ = SLPTRANS.ClientIDWHERE (NAME.NameType = 0) AND (CUSTOMC.Service_Cont = 'YES') AND (SLPTRANS.ActyExpID = '417') OR (SLPTRANS.ActyExpID = '418') AND (SLPTRANS.StartDate BETWEEN @IncludeStartDate AND @IncludeEndDate)