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). Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
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). ==Example== Consider 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. |style="vertical-align:top"| |} In the above scenario, there would be a constraint on FrameProductType and LensProductType where they must be Frame and Lens respectively, and there would be a foreign key relationship to product on both Id and productType for FrameId, FrameProductType and LensId, LensProductType respectively. For this foreign key relationship to work, an "elementary key" must be made on the Product table on Id and Type. This is generally accomplished via a unique key constraint. Without this relationship and constraint, a lens could be selected for the frame and a frame for the lens. ==Notes== ==References==
Cite this
"Elementary key normal form". 1790032426. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1376092776 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy