I am doing and this is my query so far:-declare @start datetimedeclare @end datetimeset @start=GETDATE()-2set @end=GETDATE()select CONVERT(varchar(10),cas1.date,103) as [Date], CASE WHEN cas2.CallSortingGrp IN ('UNAS', 'ASAP999', 'CGPP12', 'SD12','CGPP4','SGP4','SGP1','SD4','SDWH','CDU', 'CD1','CD12','CD4','CD24', 'CDNRA24','CDRA','CPN','CDN','CFPC','CGUMC','CHV','CLCMHT', 'CMH','CMW','COP','CORTH','CCCL','CPOL','CPOLN','CSW','ECON','CPHAR','CWIC','WIC', 'HOME','CGPP36','SDNWD','RAGP') THEN cas1.CountOfCallid END as gp_symp-- into #gp_ooh_calls_tablefrom dbo.CAS_sum_daily cas1 inner join [dbo].[Dispositions table] cas2 on cas1.[Print Group name]=cas2.[Print Group name] inner join dbo.[Call Origins] cas3 on cas1.Origin=cas3.[Call Origin]where cas1.date between @start and @end and cas3.OOH=1group by CONVERT(varchar(10),cas1.date,103), cas2.CallSortingGrp, cas1.CountOfCallidbut it's not doing as expected.I simply want one row with a total and this is giving me 112 rows.Anyone any ideas?