chapter 6 Flashcards
what is a simple UID
A UID that is a single attribute is a simple UID
what is a composite UID
If the UID is a combination of attributes, it is called composite UID
what is a UID
It is the value or combination of values that enables the user to find that one unique item among all the rest.
What are artificial UID
- -> dont occur in the natural world but are created for purposes of identification in a system
- -> people are not born with numbers, but a lot of systems assign unique numbers to identify people
A UID can be both _____ and ______
artificial and composite
Sometimes the UID is a combination of both _________ and a _________
attribute and a relationship
what can be used instead of a barred relationship to the originating entities
Intersection entity
What is a candidate entity
- -> sometimes 2 or more UIDs exist
- -> these are both candidate UIDs
- -> only one of the candidate UIDs is chosen as the actual UID which is called primary UID
- -> the other UIDs are called secondary UID
example of candidate UID
student ID and badge number
- -> student ID is the primary UID
- -> badge number is a secondary UID
what does a primary key allow you to do
access a specific record in teh database
There is not limit to the number of attributes that can make up a UID
True
do you need the barred relationship if you have an artificial UID
no barred relationships required
what is the normalisation process
Database normalisation is a database schema design technique, by which an existing schema is modified to minimise redundancy and dependency of data.
Normalization splits a large table into smaller tables and defines relationships between them to increase the clarity in organizing data.
what is the first normal form
- -> the first normal form requires that no multi-valued attributes exist
- -> to check for 1NF, validate that each attribute has a single value for each instance of the entity
how to convert into first normal form
if an attribute is multi valued, create an additional entity and relate it to the original entity with a 1:M relationship