Five basic rules of database structure

  1. Order doesn’t matter
  2. No duplicate rows
  3. Every cell contains one value
  4. One column per type of information
  5. No redundant information

1. Order doesn’t matter

Order of rows doesn't matter example

2. No duplicate rows

No duplicate rows example

3. Every cell contains one value

One value per cell example

4. One column per type of information

One column per type of information example

Restructure the examples of what not to do for #3 and #4.

How to restructure to keep no duplicate rows and one value per cell

Cross-tablulated data is difficult for SQL to work with.

Cross-tab table restructure

5. No redundant information

No redundant information example

Multiple tables

Table with redundant information

Restructuring a redundant table into two