Naar de homepage
Homepage Articles Contact
Your location : Articles > Software

Database design tutorial

The first normal form (1NF)

A database table is a representation of an "entity" in the system you are building. Examples of entities are order, customer, contact moment, product, etc. Each row in the database table represents one occurence of an entity. For example in a customer table each row will contain information about 1 customer.

  • Each table has a primary key, consisting of the smallest possible number of fields. (A primary can be be made up of multiple fields).
  • Atomicity: each field contains one value. An adres for example, would ideally be stored in three separate fields: street, number and possibly an extension. (Extensions are quite common in my country. Churchstreet 55 B, for example)
  • The order of rows in a table should not matter. You may be inclined to use the order of rows in a customer table to determine which customer first registered. For this purpose you should create date and time fields that store the customer's subscription date and time. Row order will inevitably change when customers are deleted, modified and inserted. That is why you shouldn't rely on the order of rows in a table.

The next page of this database design tutorial discusses the second normal form (2NF)


  1. 1  
  2. 2  
  3. 3  
  4. 4  
  5. 5  
  6. 6  
  7. 7  
  8. 8  
  9. 9  
  10. 10  
  11. 11 
  12. 12  
  13. 13  
  14. 14  
  15. 15  
  16. 16  
Database design tutorial
  1. 1Introduction
  2. 2Database history
  3. 3Relational database characteristics
  4. 4Customer contact system
  5. 5Tables and the primary key
  6. 6Linking tables
  7. 7The one-to-many relationship
  8. 8The many-to-many relationship
  9. 9The one-to-one relationship
  10. 10Database normalization
  11. 11The first normal form (1NF)
  12. 12The second normal form (2NF)
  13. 13The third normal form (3NF)
  14. 14The final database design
  15. 15Another example: webshop database
  16. 16Conclusion

De inhoud van Tekstenuitleg is beschermd door auteursrecht en mag niet gekopieerd worden zonder schriftelijke toestemming van Tekstenuitleg.net. Lees svp de voorwaarden.