Answer the question
In order to leave comments, you need to log in
What database structure to choose for storing test tasks?
I will need to parse files with test tasks and save them to the database. Each test will have the following parameters:
Answer the question
In order to leave comments, you need to log in
Answers to another table (suddenly there will be more of them over time?), The correct answer is the id of the answer in another table. Everything.
At first glance, 3 tables will suffice: questions, questions asked, answers provided.
Although I would advise you to contact a database architect with a development task, and train yourself on something less critical.
Question table: test number, question number, topic ID, source ID 1, source ID 2, specialty ID, language code ; primary key - (test number, question number).
Answer table: ID, test number, question number, answer text, sign of the correct answer.
Table of topics, table of sources, table of specialties.
Christopher Date, book - An Introduction to Database Systems, rutracker.org/forum/viewtopic.php?t=1714020 might help. This is a fundamental work on databases.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question