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;
14 Cards in this Set
- Front
- Back
primary key
|
a field which uniquely identifies a record in a relational database
|
|
compound key
|
a primary key made up of more than one field due to the unsuitability of a single field as a primary key
|
|
surrogate key
|
a primary key which is made up when there is no suitable primary key or compound key...see above
|
|
foreign key
|
a foreign key is a primary key in another table which is used for linking purposes in a reltional database
|
|
entity integrity
|
every relation must have an primary key and it must be unique and not null
|
|
referential integrity
|
foreign keys must have two states, either it should be linked to a primary key of a related relation or in special circumstances it should be a null value
|
|
rows
|
each row in a relation must be unique, this means that the combinations of values in the columns cannot be the same
|
|
Data Dictionary
|
A data dictionary is a form of metadata as it gives information about the domain constraints which apply to each attribute in an entity.
It is essentialy creating a design for the various database tables which will be created in the relational database management system |
|
Information contained in a data dictionary/columns....Entity set
|
the name of the entity set, when the database is created this is the name of the table
|
|
Name
|
this is where the names of the attributes are listed
|
|
Type
|
this refers to whether the data is an integer or text etc
|
|
Size
|
this is a constraint placed on data of type text which constrains there maximum length. this helps make the database more efficient as it only takes up the required amount of space
|
|
Validation
|
this is the range of accepted values for each attribute. The validations availible is a presence check, null values are not allowed. range check, value entered must be above/below certain values. format check, the data entered must conform to a specific pattern and/or number of characters. permitted value, only one of a selection of values is allowed
|
|
Index/key
|
This is where foregin keys and primarys keys are idefntified.
|