database - Can prime attributes depend on each other? -
i have relation r{id, building, floor, sequence, capacity} where:
(building,floor,sequence) -> id id -> (building,floor,sequence) (building,floor,sequence) -> capacity id -> capacity
it seems doesn't violate normal form. however, ok id depend on (building,floor,sequence) , vice versa though id primary key? if no, can done?
in relation multiple candidate keys, there'll inevitably cyclic dependencies between them - since candidate key can uniquely identify each tuple , each tuple has value each candidate key.
the fact 1 key selected being "more equal" others , named primary key irrelevant. (when we're talking abstractly, here. database products may have features indeed make primary key "more equal" alternate keys)
Comments
Post a Comment