1.3.2 Flashcards
What is a primary key
A unique identifier for each record in a table
What is a foreign key
The attribute which links two tables together
What is a secondary key
An index other than the primary key used to search and sort through the database with more convince and speed
What does ACID stand for
Atomicity
Consistency
Isolation
Durability
Atomicity
Completing only part of a transaction can cause things to break. The best way to ensure this is to make transactions atomic. Meaning they cannot be broken down further.
A database management system ensures that every step must succeed before the database is permanently changed
Consistency
Every database has a set of rules about the kind of data held within its fields and the relationships between tables and keys.
Consistency means that a transaction must ensure that all database rules are being followed.
Isolation
No other transaction can interfere with the data being handled by the current transaction until it has completed its update
Durability
Whenever a transaction has taken place the update must remain in place even if there is a system failure, a durable transaction is recorded in such a way that the results cannot easily be lost