It's been a very long time since I've done much coding, and even then I wasn't a database guy (beyond being able to write a query if I needed to).
I may be over complicating this, but I'm starting a small project for myself and want to use a DB for it. It will be a quiz/test engine, holding possibly as many as 4000-5000 questions. It won't likely ever be any larger than that.
It will need to hold:
Question ID
Question Type (either multi choice 1 answer, multi choice multi answer, or drag n drop)
Question Text
The text for each answer option or drag n drop item (average of 4 per question)
A way to denote correct answer option(s)
Filesystem link to a statically displayed image, if one exists for the Q
Optional filesystem link to an image that can be opened by a clickable button on the question page
Possibly one or two other pieces of info that I haven't thought of yet, lol
I'm thinking I need probably three or four tables.
One for question text and type
One for the answer text options, with a foreign key to the Question ID
One for image info, with a field to denote whether it's static or buttoned with an FK to Question ID
Possibly another table to hold the IDs of the correct answers with an FK to QID again?
Does that sound about right, or have I completely missed the mark?