ArticleslgStudy

science

Embedded dependency

Embedded dependency is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Embedded dependency rather than just read about it. In short: In relational database theory, an embedded dependency (ED) is a certain kind of constraint on a relational database. It is the most general type of constraint used in practice, including both tuple-generating dependencies and equality-generating dependencies.

Key takeaways

  • Embedded dependency belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Embedded dependency to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Embedded dependency from memory before moving on to harder problems.

Reference excerpt

In relational database theory, an embedded dependency (ED) is a certain kind of constraint on a relational database. It is the most general type of constraint used in practice, including both tuple-generating dependencies and equality-generating dependencies. Embedded dependencies can express functional dependencies, join dependencies, multivalued dependencies, inclusion dependencies, foreign key dependencies, and many more besides. An algorithm known as the chase takes as input an instance that may or may not satisfy a set of EDs, and, if it terminates (which is a priori undecidable), output an instance that does satisfy the EDs.

Definition An embedded dependency (ED) is a sentence in first-order logic of the form:

∀x1,…,xn.ϕ(x1,…,xn)→∃z1,…,zk.ψ(y1,…,ym) where {z1,…,zk}={y1,…,ym}∖{x1,…,xn} and ϕ and ψ are conjunctions of relational and equality atoms. A relational atom has the form R(w1,…,wh) and an equality atom has the form wi=wj, where each of the terms w,...,wh,wi,wj are variables or constants. Actually, one can remove all equality atoms from the body of the dependency without loss of generality. For instance, if the body consists in the conjunction A(x,y)∧B(y,z,w)∧y=3∧z=w, then it can be replaced with A(x,3)∧B(3,z,z) (analogously replacing possible occurrences of the variables y and w in the head). Analogously, one can replace existential variables occurring in the head if they appear in some equality atom.

Restrictions In literature there are many common restrictions on embedded dependencies, among with:

full (or universal) dependencies, which are the ones without existentially-quantified variables (∃zi) tuple-generating dependencies (TGDs) equality-generating dependencies (EGDs) single-head (or 1-head) dependencies, which have only one atom in the head unirelational dependencies, in which only one relation symbol occurs When all atoms in ψ are equalities, the ED is an EGD and, when all atoms in ψ are relational, the ED is a TGD. Every ED is equivalent to an EGD and a TGD.

Extensions A common extension of embedded dependencies are disjunctive embedded dependencies (DEDs), which can be defined as follows:

∀x1,…,xn.ϕ(x1,…,xn)→⋁i=1ℓ∃z1i,…,zki.ψ(y1i,…,ymi) where {z1i,…,zki}={y1i,…,ymi}∖{x1,…,xn} and ϕ and ψ are conjunctions of relational and equality atoms. Disjunctive embedded dependencies are more expressive than simple embedded dependencies, because DEDs in general can not be simulated using one or more EDs. A further extension is the disjunctive embedded dependency with inequalities (indicated with DED≠), in which every ψ may contain also inequality atoms. However, this extension does not enhance expressive power, as DEDs are already expressively complete for recursively enumerable Boolean query answering. All the restriction above can be applied also to disjunctive embedded dependencies. Beside them, DEDs can also be seen as a generalization of disjunctive tuple-generating dependencies (DTGDs). Unlike the relationship between DEDs and EDs, when considering query answering with conjunctive queries (CQs), DTGDs can always be equivalently rewritten as TGDs. However, if unions of conjunctive queries (UCQs) are allowed in query answering, the expressive power of DTGDs still strictly exceeds that of TGDs. In addition, it is also noteworthy that DEDs are strictly more expressive than DTGDs.

References

Further reading Kanellakis, Paris C. (1990). "Elements of Relational Database Theory". Handbook of Theoretical Computer Science, Volume B: Formal Models and Sematics. Amsterdam: Elsevier. pp. 1073–1156. doi:10.1016/b978-0-444-88074-1.50022-6. ISBN 978-0-444-88074-1. Abiteboul, Serge; Hull, Richard B.; Vianu, Victor (1995). Foundations of Databases. Addison-Wesley. ISBN 0-201-53771-0. Deutsch, Alin (2009). "FOL Modeling of Integrity Constraints (Dependencies)". Encyclopedia of Database Systems. Boston, MA: Springer US. pp. 1155–1161. doi:10.1007/978-0-387-39940-9_980. ISBN 978-0-387-39940-9.

Worked examples

Example 1 — a first encounter with Embedded dependency

Start with the simplest possible case. Write down what Embedded dependency claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Embedded dependency before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Embedded dependency ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Embedded dependency

In research
Embedded dependency appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Embedded dependency in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Embedded dependency is common in secondary-school and first-year university syllabi. It links to neighbouring topics Database theory, Logic, so understanding it makes those chapters shorter.
In everyday life
Look for Embedded dependency outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Embedded dependency” →

How to study Embedded dependency in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Embedded dependency means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Embedded dependency out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Embedded dependency in simple terms?

In relational database theory, an embedded dependency (ED) is a certain kind of constraint on a relational database. It is the most general type of constraint used in practice, including both tuple-generating dependencies and equality-generating dependencies.

Why does Embedded dependency matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Embedded dependency?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Embedded dependency.

Tags

  • Database theory
  • Logic

Keep exploring