First Test Flashcards
Referential integrity
A foreign key in one table has to be a primary key in another table
Foreign key
Primary key in another table
Entity integrity
Every table has to have a primary key and the primary key cannot be null
Derived attribute
An attribute need not be physically stored within the database
Cardinality
Specific number of entity occurrences
ER diagram
Represents the conceptual database as viewed by the end user
Composite key
A primary key composed of more than one attribute
Recursive relationship
When an entity is related to itself
Primary key
A unique key that cannot contain a null value and relates to the other keys in the table
Candidate key
Any columns or combo of columns that can qualify as a unique key in the database.
Basically candidate keys can qualify as primary keys
Secondary key
Candidate keys that were not selected as the primary key
Alternate key
Any of the candidate keys that is not part of the primary key
Domain
A parameter of an attribute
Example: months 1-12
Business rule
A rule set up arbitrarily
Relationship
Between entities that are related in a 1-1 1-many or many-many
Links entities through PK and FK