when a 1NF table has no composite candidate keys is it in 2NF?

后端 未结 3 1047
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 09:47

Is it safe to say, when a 1NF table has no composite candidate keys (primary keys consisting of more than one column), the table is automatically in 2NF?

Can a table

3条回答
  •  暖寄归人
    2020-12-11 09:57

    Yes, the table can violate 2NF when it has only one column in its primary key. The basic idea of 2NF is to have all the fields of your table directly dependent/related to the primary key. The example that @A B gives explains the same point.

提交回复
热议问题