2
I am planning a software, which is a test of 200 questions where each question can only have 3 choices and select only one of them, and each question belongs to a class type ( for example question 5 belongs to class B , are classes from A to J ) and I need to save the result of each question in the database, it is feasible to create 200 fields for each question? Ex:
Q1 | Q2 | Q3 | Q4 ......
Or is there some easier way?
Why do you think you need 200 fields for each question only has 3 options? I think you’re confusing things. I don’t understand this class business. What result? Will you have another table with the answers from whom? What are its requirements? It’s all too weird to tell you what to do. I find little or nothing relevant, but which database will actually use? Either choose one or leave without specifying.
– Maniero
The classes don’t matter, for example: each question or you can select integer or real or null, right ? but there are 200 questions , and I need to save the result of each question and then show it on another system , show all the user’s answers ,so I thought about creating 200 fields like : Tbl_answer :Usergroup | Q1 | Q2 | Q3 | Q4... Q200 <- Fields of a table , I wonder if this is a feasible possibility to save user responses
– Gabriel Longatti
you want to know how to model in the bank? I think you don’t need 200 fields for each question.. a field (column) already solves..
– Daniel Omine
Daniel, I would like to do something like this : http://imgur.com/gobzOMY because I need to save the answers of several users , got it ? so I wonder if making a field for each question ,up to 200 is feasible
– Gabriel Longatti
well, the name of it is "data modeling".. As I mentioned above, partocularmente, from what I understand, I see no reason to create 200 columns. A table with a column only already solves to register the questions and relate them to other tables. I posted answer describing a summary.
– Daniel Omine
I remembered this comic http://vidadeprogramador.com.br/uploads/2016/03/tirinha1545.png. , nothing personal.
– Motta
@Marconciliosouza again saying, the tag added is irrelevant to the question
– user28595