I am trying to create an entity relationship model for my application.
The application has questions and answers within a quiz.
The model which I have produced so far looks like this:
I am quite new to these diagrams, so would appreciate if someone could explain how to complete it with an arrow and multiplicity.
The Quiz table holds questions in QUIZ_TEXT and the correct answer in CORRECT_ANSWER
The Answer table holds the answers in ANSWERS and matches these answers with the QUIZ_ID which is the question.
I understand this is probably simple but I haven't worked with databases for a long time and my mind is going blank. Also all I need to do is this then I can move on and the majority of my work is not on databases. Please help. Thanks
Edit:
I have tried to do this, please let me know if this is correct. Thanks:
The relationship between Quiz and Answer is one-to-many so you should draw line from Quiz to Answer and put a crow's foot in the Answer end. There are other notations but this is one of the most common ways.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.