Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
21 Cards in this Set
- Front
- Back
Terminologies of the relational model |
Relation Attribute Domain Tuple Degree Cardinality Relational database |
|
RELATION |
A relation is a table with columns and rows |
|
ATTRIBUTE |
An Attribute is a named column of a relation. |
|
DOMAIN |
A Domain defines the permitted range of values for an attribute of an entity. |
|
TUPLE |
A Tuple is a row of a relation. |
|
DEGREE |
A Degree is the number of attributes a relation contains. |
|
CARDINALITY |
Cardinality is the number of tuples a relation contains. |
|
RELATIONAL DATABASE |
RD is a collection of normalized relations with distinct relation names. |
|
Formal Terms |
Relation Tuple Attribute |
|
Alternative 1 |
Table Row Column |
|
Alternative 2 |
File Record Field |
|
Properties of Database Relations |
Each attribute has a distinct name. Each cell of the relation contains exactly one atomic value.. The relation has a name distinct from all other relation names in the relational schema. Each tuple is distinct; there are no duplicate tuples The values of an attribute are all from the same domain. |
|
SUPER KEY |
Is an attribute or set of attributes that uniquely identifies a tuple within a relation |
|
CANDIDATE KEY |
Is a subset of the super key that can uniquely identify other attributes of the table. |
|
COMPOSITE KEY |
Is a combination of two or more columns in a table. |
|
PRIMARY KEY |
Is a collection of columns that contain values that uniquely identify each row in a table. |
|
ALTERNATE KEY |
Refers to the candidate keys that are not selected to be the primary key. |
|
FOREIGN KEY |
Is a column or combination of columns that is used to establish a link between the data in two tables. |
|
Integrity Rules |
Entity Integrity Referential Integrity |
|
Entity Integrity |
Requires that no attribute of a primary key can be null. |
|
Referential Integrity |
Is the logical dependency of a foreign key on a primary key. |