Five basic rules of database structure
- Order doesn’t matter
- The information should not be dependent on the order of the rows or the order of the columns
- No duplicate rows
- Every row - column combination contains one value
- One field per type of information
- No redundant information
Order doesn’t matter
No duplicate rows
One value per cell
Don’t do this.
How would you query for Shrubland?
One column per type of information
Don’t do this either.
How would you query for records with Grassland and Shrubland?
Proper structure
This lets us easily subset the data however we want.