I'm trying to create a db schema to store survey questions and answers whereas I'm not able to think of the schema to hold the data.
Here's my sample question that I want to store in database:
Any pointers on how do I do that is highly appreciated!
PS: I've gone through these posts on SO but they didn't help:
Relational Database System with dynamic columns with dynamic rows
Storing a distance matrix in DB
SQL design for survey with answers of different data types
Edit 1
PS:
I want to create a schema to store the all the question types from SurveyMonkey.com and Qualtrics.com. Is there any way?
MySQL version
CREATE TABLE
MatrixQuestion
(username
VARCHAR(45) NOT NULL COMMENT 'ex Michael',meal
VARCHAR(10) NOT NULL COMMENT 'ex breakfast, lunch, dinner',rate
TINYINT NOT NULL COMMENT 'ex 1:poor 2:average 3:fair 4:good 5:awesome', PRIMARY KEY (meal
,username
,rate
) );