Skip to main content
Erich's user avatar
Erich's user avatar
Erich's user avatar
Erich
  • Member for 12 years, 3 months
  • Last seen more than 11 years ago
awarded
awarded
awarded
comment
Database schema for a variable-level hierarchy with variable types?
I think this doesn't scale well. The root level nodes Symptoms and Discharge are examples, but there might 1-n root nodes, whose string could also appear elsewhere in the hierarchy.
awarded
Loading…
comment
Db design for a quiz with variable number of answer choices, and each worth different score in a different category?
"FK is also part of the primary key (PK) for that table." Are you referring to creating a composite key here? Any particular reason to require a composite key rather than just a PK or no PK at all?
awarded
comment
Db design for a quiz with variable number of answer choices, and each worth different score in a different category?
How would I specify the answer choices in OPTION? I'm thinking: Create a new row for every answer choice of every question (which could lead to hundreds of rows), and each answer choice is is tied to QUESTION with a foreign key. Then when populating a question, query for all answers associated with it.
comment
Db design for a quiz with variable number of answer choices, and each worth different score in a different category?
similar, but really I just need help storing 1-n answer choices, and mapping each choice to a category
Loading…