Databases & Big Data Flashcards
What is an entity?
Data inside of a database to be stored.
What are attributes?
Characteristics of other information about entities.
What is an entity identifier?
Unique attribute given to an entity.
What is an entity description?
Describes how information about data is stored in the table.
What are Relational Databases?
Idea that tables within a database can be related - linked with common attributes.
What is a primary key in databases?
Attribute which provides a unique identifier for every identity within table.
What is a foreign key?
Attribute within table which is the primary key of another table.
What is a composite primary key?
Primary key formed by a combination of attributes.
Why are databases normalised?
Allow efficiency without compromising integrity of data.
Ensures no redundant or repeated data.
What is first normal form?
First stage of normalisation
Database table will contain no repeating attributes
Atomic - No column contains more than one value.
What is second normal form?
Partial keys dependencies removed
- Attributes not dependant on the whole composite key.
What is third normal form?
Database fits second form, and has no non-key dependencies.
What are client-server databases?
Database which allows simultaneous access for multiple clients.
What is concurrent access?
When 2 users attempt to request access to the same fields at the same time.
Result in database updates being lost.
How can concurrent access issues be managed?
Record locks .
Serialisation
Timestamp / commitment ordering.