L
LurfysMa
I have a database containing question-and-answer data for multiple
subjects. It's for an electronic flashcard program. I need to keep
track of the results (right/wrong) for every user for every question
for every subject.
The subjects themselves come in several flavors.
The simplist is a stand-alone list of questions and answers. Two
examples are the mutliplication tables and vocabulary.
Here's my table design and some sample data for these two subjects. I
have shortened the field names so they will fit.
tblTimesTables
Field Type Comments
QID Long PK, autonum
Que Text The question
Ans Text The answer
Sample data:
QID Que Ans
1 1x1 1
2 2x1 2
3 2x2 4
.. . .
66 12x12 144
tblVocabulary
Field Type Comments
QID Long PK, autonum
Que Text The question
Ans Text The answer (maybe memo)
Sample data:
QID Question Answer
1 anonymous Of unknown authorship.
2 antemeridian Before noon.
3 abase To lower in rank, prestige, or esteem.
.. . .
Assuming that's all OK, now I need a table to keep track of the
subjects. Here's what I came up with:
tblSubjects
Field Type Comments
SID Long PK, autonum
SName Text Subject name (for titles)
TblName Text The name of the subject table
IsPrivate Yes/No Yes=private, by permission only
IsEnabled Yes/No Yes=enabled
Sample data:
SID SName TblName IsPrivate IsEnabled
1 Times Tables TimesTbl No Yes
2 Vocabulary Vocab No No
Is this a decent design?
My main question has to do with the TblName field. I need way to
locate the table were the questions and answers are stored. Is there a
better way?
Thanks
subjects. It's for an electronic flashcard program. I need to keep
track of the results (right/wrong) for every user for every question
for every subject.
The subjects themselves come in several flavors.
The simplist is a stand-alone list of questions and answers. Two
examples are the mutliplication tables and vocabulary.
Here's my table design and some sample data for these two subjects. I
have shortened the field names so they will fit.
tblTimesTables
Field Type Comments
QID Long PK, autonum
Que Text The question
Ans Text The answer
Sample data:
QID Que Ans
1 1x1 1
2 2x1 2
3 2x2 4
.. . .
66 12x12 144
tblVocabulary
Field Type Comments
QID Long PK, autonum
Que Text The question
Ans Text The answer (maybe memo)
Sample data:
QID Question Answer
1 anonymous Of unknown authorship.
2 antemeridian Before noon.
3 abase To lower in rank, prestige, or esteem.
.. . .
Assuming that's all OK, now I need a table to keep track of the
subjects. Here's what I came up with:
tblSubjects
Field Type Comments
SID Long PK, autonum
SName Text Subject name (for titles)
TblName Text The name of the subject table
IsPrivate Yes/No Yes=private, by permission only
IsEnabled Yes/No Yes=enabled
Sample data:
SID SName TblName IsPrivate IsEnabled
1 Times Tables TimesTbl No Yes
2 Vocabulary Vocab No No
Is this a decent design?
My main question has to do with the TblName field. I need way to
locate the table were the questions and answers are stored. Is there a
better way?
Thanks