Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-5wvtr Total loading time: 0 Render date: 2024-07-19T06:23:22.516Z Has data issue: false hasContentIssue false

7 - Integrity constraints

Published online by Cambridge University Press:  22 March 2010

Marianne Winslett
Affiliation:
University of Illinois, Urbana-Champaign
Get access

Summary

Would martyrs have sung in the flames for a mere inference, however inevitable it might be?

—William James, The Varieties of Religious Experience

Database management systems usually offer a means of expressing simple pieces of information that are best thought of as knowledge rather than data. For example, the information that an employee can belong to only one department is modeled in the database world by an integrity constraint called a functional dependency. These integrity constraints can be examined at update time to ensure that a requested update will not produce a nonsensical database state in which, for example, an employee is listed as a member of two different departments.

How might relational theories be extended to handle integrity constraints? Suppose we are given a set of integrity constraints and a relational theory containing incomplete information, such that the integrity constraints are not logically entailed by the database. Then naturally the relational theory's query processor must consider these integrity constraints when forming answers to queries, as otherwise queries may be answered imprecisely or, under some semantics for queries, incorrectly. For example, suppose that the theory contains the formula Emp(Nilsson, EE) ∨ Emp(Nilsson, CS). If asked whether Nilsson might possibly be in both CS and EE, the answer is “yes,” if no integrity constraints are present, and “no,” if we have the constraint that each employee can be in only one department.

What is less obvious is that queries may not be answered correctly unless the relational theory's update processor also explicitly considers the integrity constraints while performing updates.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1990

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Integrity constraints
  • Marianne Winslett, University of Illinois, Urbana-Champaign
  • Book: Updating Logical Databases
  • Online publication: 22 March 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511663109.007
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Integrity constraints
  • Marianne Winslett, University of Illinois, Urbana-Champaign
  • Book: Updating Logical Databases
  • Online publication: 22 March 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511663109.007
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Integrity constraints
  • Marianne Winslett, University of Illinois, Urbana-Champaign
  • Book: Updating Logical Databases
  • Online publication: 22 March 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511663109.007
Available formats
×