Fundamentals of Databases Flashcards
Define Data Model
An abstract model of which things to store and what information about them should be recorded
Define Attribute
A characteristic of an entity
Define Entity
A thing about which data is to be stored
What name is given to an attribute which can uniquely identify each attribute in a table?
Entity identifier/primary key
Why are databases normalised?
So they can be efficient without any compromise to the integrity of their data.
-Ensures entities contain no redundant or repeated data.
-Reduces update, deletion and insertion anomalies
-Allows for faster searching and sorting.
-Easier to maintain.
What is a Composite (Primary) Key?
A primary key formed from two or more other keys.
What name is given to the new table when forming a many-to-many relationship?
A link table
What is the role of a Client Server Database?
To provide simultaneous access to a database for multiple clients.
What problem occurs when different users attempt to access the same field in a client server database simultaneously?
Concurrent access
Name three ways of managing concurrent access;
-Record Locks
-Serialisation
-Timestamp Ordering
-Commitment Ordering
What is Normalisation?
The formal process of optimally designing data tables by reducing data redundancy and repetition by converting them into normal forms.
What is 1st Normal Form?
There are no repeating attributes. All the data in the database is atomic (meaning that no single column contains more than one value, cannot be split down any further)
What is 2nd Normal Form?
Must be satisfying 1st Normal Form, and partial key dependencies are removed.
A partial key dependency occurs when a non-key attribute doesn’t depend on the whole of the composite key
What is 3rd Normal Form?
Must conform to 2nd Normal form, and the database must have NO non-key dependencies.
“All non-key attributes depend on the key, the whole key, and nothing but the key”
What is a Foreign Key?
A linking attribute that joins two tables in a relational database by being a primary key in one and a foreign key in another.