说我想规范化一个表
itemID | itemDate | itemSource | type | color | size | material
254 03/08/1988 toyCo doll null 16 plastic
255 03/08/1988 toyCo car blue null plastic
256 03/08/1988 toyCo boat purple 20 wood
现在类型字段只能有 3 个值中的 1 个。doll, car, or boat. 的属性color, size, and material在功能上依赖于type。正如您所看到的,项目type|doll不确定color。我不知道这是否是一个问题。但继续前进。
type(pk) | color | size | material= 表 A
itemID(pk) | itemDate | itemSource= 表 B
我们现在处于 1nf。我的问题是,type键及其属性是否可以基于类型键的可能值?
typeDoll(pk) | size | material= 表 C
typeCar(pk) | color| material= 表 D
typeBoat(pk) | color | size | material表 E