Someone can help me I'm kind of new on the subject ... DATA BANK

-4

I'm creating a test site for questions ... has 3 types of tests. FRIENDSHIPS BOYFRIENDS MARRIED

Each test has 15 questions, how do I save the text of those questions in the database, and then generate a hit?

    
asked by anonymous 18.01.2018 / 00:18

1 answer

0

Hello, the logic would be to create a table with the categories you quoted, with ID, Category. another of questions with: ID, Question, FK of Type finally another table with: Alternative, question FK and a STATUS to indicate if the alternative is correct.

The rest would be more the application who would do, of course depending on your business rules can be more complex. if you wanted to save the answers from the staff or create a ranking, for example.

    
18.01.2018 / 00:35