Database Management 6 Flashcards
is a key that is composed of more than one attribute. An attribute that is a part of a key is called a key attribute.
composite key
is a key that can uniquely identify any row in the table. In other words, a ??? functionally determines every attribute in the row.
superkey
is a minimal superkey—that is, a superkey without any unnecessary attributes.
A candidate key
is the condition in which each row (entity instance) in the table has its own unique identity. To ensure entity integrity, the primary key has two requirements: (1) all of the values in the primary key must be unique, and (2) no key attribute in the primary key can contain a null.
Entity integrity
is the absence of any data value, and it is never allowed in any part of the primary key.
null
is the primary key of one table that has been placed into another table to create a common attribute.
foreign key (FK)
the condition in which every reference to an entity instance by another entity instance is valid.
referential integrity
is defined as a key that is used strictly for data retrieval purposes. A secondary key’s effectiveness in narrowing down a search depends on how restrictive the key is.
secondary key
This rule states that if an attempt is made to delete a record in one table where one or more records with matching foreign key values exist in another table, all associated records will be deleted.
Cascade Delete Rule
This rule states that if an attempt is made to delete a record in one table where one or more records with matching foreign key values exist in another table, that the delete operation will not be allowed.
Restrict Delete Rule