Have written a stored procedure to read table values differently, i.e. the table structure is as follows:
SurveyID QuesttionID Answer
1 3 Yes
1 4 Unsure
2 3 No
2 4 Yes
want to create a temp table to contain the following:
SurveyID Var1 Var2 Var3 Var4 .. varn
1 3 Yes 4 Unsure
2 3 No 4 Yes
there are currently 9 SurveyIDs and the resulting temp table has 81 rows! and I'm not sure why - obviously looping has gone wrong somewhere
any suggestions???
many thanks,
SurveyID QuesttionID Answer
1 3 Yes
1 4 Unsure
2 3 No
2 4 Yes
want to create a temp table to contain the following:
SurveyID Var1 Var2 Var3 Var4 .. varn
1 3 Yes 4 Unsure
2 3 No 4 Yes
there are currently 9 SurveyIDs and the resulting temp table has 81 rows! and I'm not sure why - obviously looping has gone wrong somewhere
any suggestions???
many thanks,