What I’m trying to do is allow an admin to create a questionnaire.
Every time a user writes a review for a product they must also fill out a questionnaire. This is for an educational simulation.
I’m currently using Visual Studio an am developing an ASP.NET MVC3 Website in C#.
I also use/have SQL Server 2008 and SQL Management Studio.
I’m having trouble thinking about the best way to do this.
Right now my solution is to say “You can ask up to 10 questions” and then have a ‘Questions’ table in my database and store all answers with each review and have 10 ‘Answer’ columns per review.
What would be even better is if I can somehow allow the admin to ask as many questions as they’d like and add more columns to my database table as needed. Is there any way to do this?
Or is there a better way to design my database?
That isn’t very normalized.
You should have a table with one record for each question/answer pair.