database-schema

What mysql database tables and relationships would support a Q&A survey with conditional questions? [closed]

Deadly 提交于 2019-11-26 03:02:22
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I\'m working on a fairly simple survey system right now. The database schema is going to be simple: a Survey table, in a one-to-many relation with Question table, which is in a one-to-many relation with the Answer table and with the PossibleAnswers table. Recently the customer

How to design a product table for many kinds of product where each product has many parameters

假装没事ソ 提交于 2019-11-25 21:58:53
问题 I do not have much experience in table design. My goal is to create one or more product tables that meet the requirements below: Support many kinds of products (TV, Phone, PC, ...). Each kind of product has a different set of parameters, like: Phone will have Color, Size, Weight, OS... PC will have CPU, HDD, RAM... The set of parameters must be dynamic. You can add or edit any parameter you like. How can I meet these requirements without a separate table for each kind of product? 回答1: You