Ok I have this query:declare @RDC varchar(150)Set @RDC = 9select O.ClientSurveyID,O.OtherDescription, S.DateRecieved, S.rdcIDfrom dbo.lf2_ftri_Client_Survey_Other Oleft outer join dbo.lf2_ftri_Client_Survey S on S.ClientSurveyID = O.ClientSurveyIDwhere DateRecieved Between 1/1/2006 and 12/31/2008--@start and @endand rdcID in (select value from dbo.ParmsToList (@RDC))
which returns the following:ClientSurveyID OtherDescription DateRecieved rdcID-------------- -------------------------------------------------- ----------------------- -----------138 Test 2 2008-12-01 00:00:00 9138 Test 2 2008-12-01 00:00:00 9138 Test 3 2008-12-01 00:00:00 9I need to combine it with somthing like:select count(OtherDescription) as OtherDescriptionTotal, OtherDescription from dbo.lf2_ftri_Client_Survey_Othergroup by OtherDescription
to group by OtherDescription and sum them but im not sure how to to this because of the group by clause:OtherDescriptionTotal OtherDescription--------------------- --------------------------------------------------2 Test 21 Test 3Any Ideas?? Your help is always appreciated!