Natural key

Natural key

In relational model database design, a natural key is a candidate key that has a logical relationship to the attributes within that row. A natural key is sometimes called a domain key.

The main advantage of a natural key over a surrogate key, which has no such logical relationship, is that it already exists; there is no need to add a new, artificial column to the schema. Using a natural key (when one can be identified) also simplifies data quality: It ensures that there can only be one row for a key; this "one version of the truth" can be verified, because the natural key is based on a real-world observation.

The main disadvantage of choosing a natural key is that its value may change and the relational database engine may not be able to propagate that change across the related foreign keys. For example, if person_name is used as the primary key for the person table, and a person gets married and changes name, then all of the one-to-many related tables need to be updated also. The secondary disadvantage of choosing a natural key is identifying uniqueness. The primary key must consist of the attributes that uniquely identify a row. However, it may be difficult (or it may add constraints) to create a natural key on a table. For example, if person_name is used as a primary key for the person table, many persons may share the same name and all but the first entry will be rejected as a duplication. The uniqueness constraint may be overcome by adding an additional column to the primary key, like street_address, to increase the likelihood of uniqueness.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • natural key — an identification key that reflects evolutionary relationships within the branching sequence of the key …   Dictionary of ichthyology

  • natural key — noun : a key used to determine the name of a plant or animal and based on genetic relationships especially as shown by chromosome counts compare artificial key …   Useful english dictionary

  • Key signature — For use in cryptography, see Key signature (cryptography). Key signature A major / F♯ minor with three sharps placed after the clef. In musical notation, a key signature is a series of sharp or …   Wikipedia

  • natural — adj. & n. adj. 1 a existing in or caused by nature; not artificial (natural landscape). b uncultivated; wild (existing in its natural state). 2 in the course of nature; not exceptional or miraculous (died of natural causes; a natural occurrence) …   Useful english dictionary

  • Natural Bridge Battlefield Historic State Park — Natural Bridge Battlefield State Historic Site IUCN Category V (Protected Landscape/Seascape) …   Wikipedia

  • Natural horn — in the V A Museum, London Classification Brass instrument The natural horn is a musical instrument that is the ancestor of the modern day horn, and is differentiated by its lack of valves. It consist …   Wikipedia

  • Natural — Nat u*ral (?; 135), a. [OE. naturel, F. naturel, fr. L. naturalis, fr. natura. See {Nature}.] 1. Fixed or determined by nature; pertaining to the constitution of a thing; belonging to native character; according to nature; essential;… …   The Collaborative International Dictionary of English

  • Natural day — Natural Nat u*ral (?; 135), a. [OE. naturel, F. naturel, fr. L. naturalis, fr. natura. See {Nature}.] 1. Fixed or determined by nature; pertaining to the constitution of a thing; belonging to native character; according to nature; essential;… …   The Collaborative International Dictionary of English

  • Natural fats — Natural Nat u*ral (?; 135), a. [OE. naturel, F. naturel, fr. L. naturalis, fr. natura. See {Nature}.] 1. Fixed or determined by nature; pertaining to the constitution of a thing; belonging to native character; according to nature; essential;… …   The Collaborative International Dictionary of English

  • Natural gas — Natural Nat u*ral (?; 135), a. [OE. naturel, F. naturel, fr. L. naturalis, fr. natura. See {Nature}.] 1. Fixed or determined by nature; pertaining to the constitution of a thing; belonging to native character; according to nature; essential;… …   The Collaborative International Dictionary of English

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”