arXiv · 2106.15664
Dependency Preservation May Prevent Stopping at $2NF$
Abstract
Traditionally, it was accepted that a relational database can be normalized step-by-step, from a set of un-normalized tables to tables in $1NF$, then to $2NF$, then to $3NF$, then (possibly) to $BCNF$. In particular, the rule applied to a table in $1NF$ in order to transform it to a set of tables in $2NF$ seems to be too straightforward to pose any difficulty. While it is a common belief to consider, theoretically, a database to be 'better' the higher it is normalized, practical usage advocates that this may not always be true -- in some cases a database performance may increase if left in a lower normal form, without sacrificing any of the advantages of a higher normal form. It was taken for granted that a normalization process can be stopped after reaching any normal form, without proceeding to the next higher one. However, we show that, depending on the set of functional dependencies, it may be impossible to be `precisely' (in a manner to be explained in the sequel) in $2NF$. One must, in these cases, either perform the normalization from $1NF$ to $3NF$ as an indecomposable move, or settle for a normalization between $2NF$ and $3NF$. For a clear presentation and a concise characterization of the phenomena, we model the functional dependencies as a (particular type of) directed hyper-graph -- an FD-graph. The minimal setup to exhibit the phenomena requires a single composite key, and two partially overlapping chains of transitive dependencies. This can be sketched as a specific sub-hyper-graph. Thus, an FD-graph containing that sub-hyper-graph indicates that its corresponding database cannot be precisely in $2NF$.
Explore related subjects
Keep this discovery
Amir Sapir, Ariel Sapir. 2021-06-29. Dependency Preservation May Prevent Stopping at $2NF$. https://arxiv.org/abs/2106.15664
Cite the original work for its findings. Save a collection to share your selection of sources.