Skip to main content
improved grammar and question structure
Source Link
Hannah Vernon
  • 70.5k
  • 22
  • 177
  • 321

Polls Database whit Poll table with multiple question types

I'm trying to designdesigning a database for a poll system. The questions

Questions can be one of two types,: a numerical rating (1-5) or a voice record. 

My idea is to have questions with a typetype field to specify if it's a selectionnumeric rating or an audio question, and. I'd have two fields, responseresponse to store the numeric answers and audio_idaudio_id to link to another table that can store the audio files. But

However, in this case Idesign, there will always havebe a null field in each record, that's why I do not know if. Is this is a good approach to solve the problem, I would appreciate if you can give me some advice of how solve this.?

Polls Database whit multiple question types

I'm trying to design a database for a poll system. The questions can be of two types, a numerical rating (1-5) or a voice record. My idea is to have questions with a type field to specify if it's a selection or audio question, and have two fields, response to store the numeric answers and audio_id to link to another table that can store the audio files. But in this case I will always have a null field in each record, that's why I do not know if this is a good approach to solve the problem, I would appreciate if you can give me some advice of how solve this.

Poll table with multiple question types

I'm designing a database for a poll system.

Questions can be one of two types: a numerical rating (1-5) or a voice record. 

My idea is to have questions with a type field to specify if it's a numeric rating or an audio question. I'd have two fields, response to store the numeric answers and audio_id to link to another table that can store the audio files.

However, in this design, there will always be a null field in each record. Is this is a good approach to solve the problem?

Source Link

Polls Database whit multiple question types

I'm trying to design a database for a poll system. The questions can be of two types, a numerical rating (1-5) or a voice record. My idea is to have questions with a type field to specify if it's a selection or audio question, and have two fields, response to store the numeric answers and audio_id to link to another table that can store the audio files. But in this case I will always have a null field in each record, that's why I do not know if this is a good approach to solve the problem, I would appreciate if you can give me some advice of how solve this.