Inclusion dependencies and their interaction with functional dependencies in SQL

Driven by the SQL standard, we investigate simple and partial inclusion dependencies (INDs) with not null constraints. Implication of simple INDs and not null constraints is not finitely axiomatizable. We propose not null inclusion dependencies (NNINDs) that subsume simple and partial INDs, are finitely axiomatizable and PSPACE-complete to decide. NNINDs are fixed parameter-tractable in their arity, typed acyclic NNINDs are NP-hard, and tree-like NNINDs are decidable in linear time. We use a chase to decide implication for functional dependencies and acyclic NNINDs in exponential time, and identify a liberal condition that guarantees no interaction between functional dependencies and acyclic (NN)INDs. Simple inclusion dependencies and NOT NULL constraints are not finitely axiomatizable.The new class of not null inclusion dependencies (NNINDs) subsumes simple and partial inclusion dependencies.The implication problem for NNINDs is finitely axiomatizable, PSPACE-complete, and fixed parameter-tractable in their arity.Typed acyclic NNINDs are NP-complete, and tree-like NNINDs are linear time decidable.Super-reducedness is an efficient condition sufficient to guarantee no interaction between functional dependencies and NNINDs.

[1]  Georg Gottlob,et al.  Tractable database design and datalog abduction through bounded treewidth , 2010, Inf. Syst..

[2]  C. J. Date Referential Integrity , 1981, VLDB.

[3]  Andrea Calì,et al.  A general datalog-based framework for tractable query answering over ontologies , 2009, SEBD.

[4]  Philip A. Bernstein,et al.  Computational problems related to the design of normal form relational schemas , 1979, TODS.

[5]  Sebastian Link,et al.  Index Design for Enforcing Partial Referential Integrity Efficiently , 2015, EDBT.

[6]  Surajit Chaudhuri,et al.  Fast Foreign-Key Detection in Microsoft SQL Server PowerPivot for Excel , 2014, Proc. VLDB Endow..

[7]  Mark Levene,et al.  Axiomatisation of Functional Dependencies in Incomplete Relations , 1998, Theor. Comput. Sci..

[8]  Mark Levene,et al.  Guaranteeing no interaction between functional dependencies and tree-like inclusion dependencies , 2001, Theor. Comput. Sci..

[9]  Moshe Y. Vardi,et al.  Polynomial-time implication problems for unary inclusion dependencies , 1990, JACM.

[10]  Michael R. Fellows,et al.  Parameterized Complexity , 1998 .

[11]  Luca Cabibbo On keys, foreign keys and nullable attributes in relational mapping systems , 2009, EDBT '09.

[12]  Stavros S. Cosmadakis,et al.  Functional and inclusion dependencies a graph theoretic approach , 1984, PODS '84.

[13]  Ian Horrocks,et al.  Keys, Nominals, and Concrete Domains , 2003, IJCAI.

[14]  Mark Levene,et al.  How to Prevent Interaction of Functional and Inclusion Dependencies , 1999, Inf. Process. Lett..

[15]  Theo Härder,et al.  Access path support for referential integrity in SQL2 , 1996, The VLDB Journal.

[16]  Diego Calvanese,et al.  Capturing Relational Schemas and Functional Dependencies in RDFS , 2014, AAAI.

[17]  Andrea Calì,et al.  Data integration under integrity constraints , 2004, Inf. Syst..

[18]  Sebastian Link,et al.  SQL schema design: foundations, normal forms, and normalization , 2018, Inf. Syst..

[19]  David Toman,et al.  On Keys and Functional Dependencies as First-Class Citizens in Description Logics , 2006, IJCAR.

[20]  Mark Levene,et al.  Null Inclusion Dependencies in Relational Databases , 1997, Inf. Comput..

[21]  Walter J. Savitch,et al.  Relationships Between Nondeterministic and Deterministic Tape Complexities , 1970, J. Comput. Syst. Sci..

[22]  E. F. CODD,et al.  A relational model of data for large shared data banks , 1970, CACM.

[23]  Joachim Biskup,et al.  Controlled query evaluation for enforcing confidentiality in complete information systems , 2004, International Journal of Information Security.

[24]  Andrea Calì,et al.  On the decidability and complexity of query answering over inconsistent and incomplete databases , 2003, PODS.

[25]  Shuai Ma,et al.  Extending inclusion dependencies with conditions , 2014, Theor. Comput. Sci..

[26]  Terry A. Halpin,et al.  Information Modelling and Relational Databases , 2001 .

[27]  Sven Hartmann,et al.  Design by example for SQL table definitions with functional dependencies , 2012, The VLDB Journal.

[28]  Serge Abiteboul,et al.  Foundations of Databases , 1994 .

[29]  Yuri Gurevich,et al.  The Classical Decision Problem , 1997, Perspectives in Mathematical Logic.

[30]  Y. Edmund Lien,et al.  On the Equivalence of Database Models , 1982, JACM.

[31]  Ronald Fagin,et al.  Inclusion Dependencies and Their Interaction with Functional Dependencies , 1984, J. Comput. Syst. Sci..

[32]  Paolo Atzeni,et al.  Functional Dependencies in Relations with Null Values , 1984, Inf. Process. Lett..

[33]  John C. Mitchell The Implication Problem for Functional and Inclusion Dependencies , 1984, Inf. Control..

[34]  Terry A. Halpin,et al.  Information modeling and relational databases (2. ed.) , 2008 .

[35]  Mark Levene,et al.  Justification for Inclusion Dependency Normal Form , 2000, IEEE Trans. Knowl. Data Eng..

[36]  Beng Chin Ooi,et al.  On multi-column foreign key discovery , 2010, Proc. VLDB Endow..

[37]  Jarek Gryz,et al.  Query folding with inclusion dependencies , 1998, Proceedings 14th International Conference on Data Engineering.

[38]  Paolo Atzeni,et al.  Functional Dependencies and Constraints on Null Values in Database Relations , 1986, Inf. Control..

[39]  Diego Calvanese,et al.  Anwering Recursive Queries under Keys and Foreign Keys is Undecidable , 2003, KRDB.

[40]  Sushil Jajodia,et al.  The inference problem: a survey , 2002, SKDD.

[41]  Sergio Greco,et al.  Polynomial time queries over inconsistent databases with functional dependencies and foreign keys , 2010, Data Knowl. Eng..

[42]  Sebastian Link,et al.  Inclusion Dependencies Reloaded , 2015, CIKM.

[43]  John C. Mitchell Inference rules for functional and inclusion dependencies , 1983, PODS '83.

[44]  Edward Sciore Inclusion dependencies and the universal instance , 1983, PODS '83.

[45]  Heikki Mannila,et al.  Design of Relational Databases , 1992 .

[46]  David Toman,et al.  On Keys and Functional Dependencies as First-Class Citizens in Description Logics , 2007, Journal of Automated Reasoning.

[47]  Sebastian Link,et al.  Possible and Certain SQL Key , 2015, Proc. VLDB Endow..

[48]  Sven Hartmann,et al.  The implication problem of data dependencies over SQL table definitions: Axiomatic, algorithmic and logical characterizations , 2012, TODS.

[49]  Stefan Woltran,et al.  Complexity of redundancy detection on RDF graphs in the presence of rules, constraints, and queries , 2013, Semantic Web.

[50]  Moshe Y. Vardi,et al.  The Implication Problem for Functional and Inclusion Dependencies is Undecidable , 1985, SIAM J. Comput..

[51]  Ronald Fagin,et al.  Multivalued dependencies and a new normal form for relational databases , 1977, TODS.

[52]  Joachim Biskup,et al.  Synthesizing independent database schemas , 1979, SIGMOD '79.

[53]  David S. Johnson,et al.  Testing containment of conjunctive queries under functional and inclusion dependencies , 1982, J. Comput. Syst. Sci..

[54]  Stavros S. Cosmadakis,et al.  Equational theories and database constraints , 1985, STOC '85.

[55]  Felix Naumann,et al.  Discovering conditional inclusion dependencies , 2012, CIKM.

[56]  Heikki Mannila,et al.  Inclusion dependencies in database design , 1986, 1986 IEEE Second International Conference on Data Engineering.

[57]  Marco A. Casanova,et al.  Towards a sound view integration methodology , 1983, PODS.