Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You're making a common mistake of database design, storing name in one column and value in another column. This is not a relational database design. </p> <p>Each attribute should be named by the column name. Color, pages, shirt size, publish date, should be <em>column names</em>.</p> <p>If each product type has a distinct set of attributes, there are other solutions. See my answers to:</p> <ul> <li><a href="https://stackoverflow.com/questions/695752/product-table-many-kinds-of-product-each-product-has-many-parameters/695860#695860">Product table, many kinds of product, each product has many parameters</a> for details.</li> <li><a href="https://stackoverflow.com/questions/884050/how-do-you-model-custom-attributes-of-entities/884279#884279">How do you model custom attributes of entities?</a></li> <li><a href="https://stackoverflow.com/questions/2219713/design-question-filterable-attributes-sql/2255750#2255750">Design question: Filterable attributes, SQL</a></li> <li><a href="https://stackoverflow.com/questions/373126/how-to-design-a-database-schema-to-support-tagging-with-categories/373291#373291">How to design a database schema to support tagging with categories?</a></li> <li><a href="https://stackoverflow.com/questions/287839/how-to-define-structure-in-a-tag-based-organization/287977#287977">How to define structure in a tag-based organization?</a></li> </ul> <p>Also <em>please</em> read this story: <a href="http://www.simple-talk.com/opinion/opinion-pieces/bad-carma/" rel="nofollow noreferrer">Bad CaRMa: <em>Introducing Vision</em></a> before you implement a database designed around name-value pairs as you are doing.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload