I've got a bunch of survey answers in a table. I've written a report that summarizes at the question level using db.hdr. The same report, running on the same tables, correctly summarizes two of the surveys' answers, and doesn't for the other two. Same report, same stored procedure, same tables. Is there something I can look for that is affecting this? Thanks.
DROP PROCEDURE IF EXISTS sp_DBR_show_survey_detail
$$
CREATE PROCEDURE `sp_DBR_show_survey_detail`(inSurveyID int)
BEGIN select filename as 'Survey Name' from research.surveys s where s.ID = inSurveyID; select 'dbr.hdr', 'Question'; select
q.ID as 'ID',
q.LText as 'Question',
c.alias as 'Alias',
a.response as 'Response',
a.comment as 'Comment'
from research.answers a
join research.customers c on c.ID = a.customerID
join research.questions q on a.questionID = q.ID
where a.surveyID = inSurveyID; END
$$