Normalization

  1. 1NF
    1. Using row order to convey information violates 1NF. Ví dụ bạn tạo 1 bảng lưu tên của học sinh trong lớp theo thứ tự chiều cao giảm dần. Việc lưu theo thứ tự 1 cách ngầm định như vậy là không nên, đúng ra bạn phải lưu thêm 1 cột chứa chiều cao của các học sinh bên cạnh 1 cột chứa tên của học sinh là đủ.
    2. Mixing data types within the same column violates 1NF. Không nên mix type trong cùng 1 cột, tuy nhiên hiện tại các database đều hỗ trợ khai báo kiểu cho cột rồi nên điều này khó xảy ra.
    3. A table without a primary key violates 1NF.
    4. Storing a repeating group of data items on a single row violates 1NF.
  2. 2NF
    1. Each non-key attribute musts depend on the entire primary key.
  3. 3NF
    1. Every non-key attribute in a table should depend on the key, the whole key, and nothing but the key.
  4. Boy-Codd Normal Form
    1. Every non-key attribute in a table should depend on the key, the whole key, and nothing but the key.
  5. 4NF Multivalued dependencies in a table must be multivalued dependencies on the key.
  6. 5NF: The table (which must be in 4NF) cannot be descripbable as the logical result of joining some other tables together.