Posted by 2redline on 01/12/06 15:31
Had one correction to the last line and removed the t from sit to be
si.
Query Analyzer gives an error of
"Server: Msg 529, Level 16, State 2, Line 1
Explicit conversion from data type text to decimal is not allowed."
This is the same error I got during previous attempts also.
It makes me believe it is something to do with the field type. It is
Text, 16, allow nulls
The following working sql will give me each response but no average
..........
SELECT dbo_sur_response_answer.answer_text
FROM (dbo_sur_response_answer INNER JOIN dbo_sur_subitem ON
dbo_sur_response_answer.subitem_id = dbo_sur_subitem.subitem_id) INNER
JOIN dbo_sur_response ON dbo_sur_response_answer.response_id =
dbo_sur_response.response_id
WHERE (((dbo_sur_response.completed_yn)="Y") AND
((dbo_sur_subitem.subitem_id)=[enter SubID]));
Results
-------------------
25.1
20.9
1.12
Any more ideas?
Thanks
[Back to original message]
|