Elementary key normal form
Elementary key normal form (EKNF) is a subtle enhancement on third normal form, thus EKNF tables are in 3NF by definition. This happens when there is more than one unique compound key and they overlap. Such cases can cause redundant information in the overlapping column(s). HistoryEKNF was defined by Carlo Zaniolo in 1982.[1] DefinitionA table is in EKNF if and only if all its elementary functional dependencies begin at whole keys or end at elementary key attributes. For every full non-trivial functional dependency of the form X→Y, either X is a key or Y is (a part of) an elementary key.[1] In this definition, an elementary functional dependency is a full functional dependency (a non-trivial functional dependency X → A such that there is no functional dependency X' → A that also holds with X' being a strict subset of X), and an elementary key is a key X for which there exists an attribute A such that X → A is an elementary functional dependency. ExampleConsider the following scenario, there is an order process for glasses in which a frame and lens must be specified. The lens product must be a lens and the frame product must be a frame. For this constraint to be maintained, the product type is added to the row for each product.
Notes
References
|
Portal di Ensiklopedia Dunia