views:

16

answers:

0

I have a table structure in SQL Server 2005 which has columns as QuestionID,QuestionDescription,IsRequired and Answer.

I have to create a SP in which I have to check a question and on the basis of IsRequired column, I have to do some processing.

I cannot use QuestionID as it is not coming as a parameter or so. I am left with only option of string matching and finding the ID and then do the manipulations.

Is there any other way of dealing with this except string mapping. Will it be of any help, If I convert this questions in rows to columns. Please comment and suggest any other approach.