Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Entity integrity
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Concept in relational databases}} '''Entity integrity''' is concerned with ensuring that each row of a table has a unique and non-null primary key value; this is the same as saying that each row in a table represents a single instance of the entity type modelled by the table. A requirement of E. F. Codd in his seminal paper is that a primary key of an entity, or any part of it, can never take a null value.<ref>{{Cite web|url=https://www.sqa.org.uk/e-learning/MDBS01CD/page_39.htm|title=Entity Integrity}}</ref> The relational model states that every [[relation (database)|relation]] (or [[table (database)|table]]) must have an identifier, called the [[primary key]] (abbreviated PK), in such a way that every [[row (database)|row]] of the same relation be identifiable by its content, that is, by a unique and minimal value. The PK is a not empty set of [[attribute (computing)|attributes]] (or [[column]]s). The same format applies to the [[foreign key]] (abbreviated FK) because each FK matches a preexistent PK. Each of attributes being part of a PK (or of a FK) must have data values (such as numbers, letters or typographic symbols) but not [[data marks]] (also known as [[NULL marks]] in [[SQL]] world). Morphologically, a [[Compound key|composite primary key]] is in a "steady state": If it is reduced, PK will lose its property of identifying every row of its relation but if it is extended, PK will be redundant. ==See also== *[[Domain integrity]] *[[Data integrity]] *[[Referential integrity]] *[[Null (SQL)]] ==References== <references /> [[Category:Data modeling]] [[Category:Data quality]] {{database-stub}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite web
(
edit
)
Template:Database-stub
(
edit
)
Template:Short description
(
edit
)