Entity and referential integrity are the most fundamental constraints that any relational database should satisfy. We re-examine these fundamental constraints in the context of incomplete relations, which may have null values of the types “value exists but is unknown” and “value does not exist”. We argue that in practice the restrictions that these constraints impose on the occurrences of null values in relations are too strict. We justify a generalisation of the said constraints wherein we use key families, which are collections of attribute sets of a relation schema, rather than keys, and foreign key families which are collections of pairs of attribute sets of two relation schemas, rather than foreign keys. Intuitively, a key family is satisfied in an incomplete relation if each one of its tuples is uniquely identifiable on the union of the attribute sets of the key family, in all possible worlds of the incomplete relation, and, in addition, is distinguishable from all the other tuples in the incomplete relation by its nonnull values on some element in the key family. Our proposal can be viewed as an extension of Thalheim’s key set, which only deals with null values of type “value exists but is unknown”. The intuition behind the satisfaction of a foreign key family in an incomplete database is that each pair of attribute sets in the foreign key family takes the foreign key attribute values over of a tuple in one incomplete relation referencing the key attribute values over of a tuple in another incomplete relation. Such referencing is defined only in the case when the foreign key attribute values do not have any null values of the type “value does not exist”; we insist that the referencing be defined for at least one such pair. We also investigate some combinatorial properties of key families, and show that they are comparable to the standard combinatorial properties of keys.
Mots clés : incomplete relation, null value, entity and referential integrity, key family, foreign key family
@article{ITA_2001__35_2_113_0, author = {Levene, Mark and Loizou, George}, title = {A generalisation of entity and referential integrity in relational databases}, journal = {RAIRO - Theoretical Informatics and Applications - Informatique Th\'eorique et Applications}, pages = {113--127}, publisher = {EDP-Sciences}, volume = {35}, number = {2}, year = {2001}, mrnumber = {1862458}, zbl = {0992.68048}, language = {en}, url = {http://www.numdam.org/item/ITA_2001__35_2_113_0/} }
TY - JOUR AU - Levene, Mark AU - Loizou, George TI - A generalisation of entity and referential integrity in relational databases JO - RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications PY - 2001 SP - 113 EP - 127 VL - 35 IS - 2 PB - EDP-Sciences UR - http://www.numdam.org/item/ITA_2001__35_2_113_0/ LA - en ID - ITA_2001__35_2_113_0 ER -
%0 Journal Article %A Levene, Mark %A Loizou, George %T A generalisation of entity and referential integrity in relational databases %J RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications %D 2001 %P 113-127 %V 35 %N 2 %I EDP-Sciences %U http://www.numdam.org/item/ITA_2001__35_2_113_0/ %G en %F ITA_2001__35_2_113_0
Levene, Mark; Loizou, George. A generalisation of entity and referential integrity in relational databases. RAIRO - Theoretical Informatics and Applications - Informatique Théorique et Applications, Tome 35 (2001) no. 2, pp. 113-127. http://www.numdam.org/item/ITA_2001__35_2_113_0/
[1] Foundations of Databases. Addison-Wesley, Reading, MA (1995). | Zbl
, and ,[2] ANSI/X3/SPARC, Study group on database management systems, interim report. Bull. ACM SIGFIDET 7 (1975).
[3] Extending the database relational model to capture more meaning. ACM Trans. Database Systems 4 (1979) 397-434.
,[4] The Relational Model for Database Management: Version 2. Addison-Wesley, Reading, MA (1990). | Zbl
,[5] Referential integrity, in Relational Database: Selected Writings. Addison-Wesley, Reading, MA (1986) 41-63. | Zbl
,[6] Composite keys, in Relational Database Writings 1989-1991. Addison-Wesley, Reading, MA (1992) 467-474.
,[7] Relations and minimal keys. Acta Cybernet. 8 (1988) 279-285. | MR | Zbl
and ,[8] Computers and Intractability: A Guide to the Theory of NP-Completeness. W.H. Freeman, New York (1979). | MR | Zbl
and ,[9] Access path support for referential integrity in SQL2. VLDB J. 5 (1996) 196-214.
and ,[10] Nonapplicable nulls. Theoret. Comput. Sci. 46 (1986) 67-82. | MR | Zbl
and ,[11] Null inclusion dependencies in relational databases. Inform. and Comput. 136 (1997) 67-108. | MR | Zbl
and ,[12] A Guided Tour of Relational Databases and Beyond. Springer-Verlag, London (1999). | Zbl
and ,[13] Candidate keys for relations. J. Comput. System Sci. 17 (1978) 270-279. | MR | Zbl
and ,[14] The Theory of Relational Databases. Computer Science Press, Rockville, MD (1983). | MR | Zbl
,[15] On semantic issues connected with keys in relational databases permitting null values. J. Inform. Process. Cybernet. 25 (1989) 11-20. | MR | Zbl
,