‼️‼️ 新实体中的部分 PK 不可以成为主实体的 FK 。不管 main entity 的 composite PK 有多长都不行。
1NF → 2NF
注意事项
Non-key attributes are attributes that are not part of any candidate key.
Partial dependencies are defined with respect to composite candidate keys, not merely the chosen primary key.
During the transformation from 1NF to 2NF, the PKs of the newly created relations become FKs in the remaining relation. This differs from the UNF to 1NF transformation, where the original PK is propagated into the new relation as part of a composite PK.
2NF → 3NF
注意事项
新关系中,决定属性作为 PK ,而原关系中保留其作为 FK 。
data modelling
考试中想要省点时间找entity和key,可以注意这几个关键词:assigned,identified,id,number。直接command + F 搜索就好了。但是不代表这样找到的entity和key就是最后结果,还以要仔细读材料。