Do the aggregation in a subquery, then join on to the answer table from there to pull the description (Sql Datatypes text ntext and image can't be used in GROUP BY clauses)
select
oa.AnswerDescription,
srCount
from
(
SELECT
sr.ResponseAnswerID,
count(sr.RespondantID) as srCount
from
SURVEY_RESPONSE sr
INNER JOIN ANSWER a on sr.ResponseAnswerID=a.AnswerID
where a.QuestionID= 284
group by
sr.ResponseAnswerID
) sub
join ANSWER oa on sub.ResponseAnswerID = oa.AnswerID
Reputation Points: 262
Solved Threads: 68
Veteran Poster
Offline 1,181 posts
since Feb 2005