✅1.3.2 Databases Flashcards
(47 cards)
State 2 benefits of using a relational database instead of a flat file database?
- Relational databases allows for less redundancy of data/less repeated data
- Relational databases improve the consistency of data
State the difference between a primary key and a foreign key
A primary key will only appear once in a table/is a unique identifier. Whereas a foreign key may appear multiple times a table/may not be unique
What does ACID stand for?
- Atomicity
- Consistency
- Isolation
- Durability
What is a database?
An organised collection of data.
What is a flat file database?
A database that stores all data in a single table.
What is a primary key?
A unique identifier for each record in a table.
What is a secondary key?
A field or fields that are indexed for faster searching.
What is a foreign key?
A field in a table that refers to the primary key in another table used to link tables and create relationships.
What is a composite primary key?
A combination of 2 or more fields that are unique for all records.
What is a relational database?
A database that organises data into multiple tables, using keys to connect related data
What is a database management system?
Software used to store, retrieve, manipulate, and manage data in databases
What is normalisation?
The process of organising a database to reduce data duplication and improve data accuracy and consistency
What are the types of relationships?
One-to-one
One-to-many
Many-to-many
What is SQL?
A programming language used to interact with a database management system
(DBMS)
Describe what is meant by transactions being durable
(Committed) transactions are not lost in case of system failure.
Identify two methods of exchanging data with other computer systems
- CSV
- JSON
- XML
- SQL
State three requirements for a database to be in First Normal Form (1NF).
- Each record has a primary key
- Data is atomic
- No repeating groups of attributes
State two requirements for a database to be in Second Normal Form (2NF).
- In 1NF
- Have no partial dependencies (non-primary key attributes must not depend on only part of the primary key (in the case of a composite primary key))
State three requirements for a database to be in Third Normal Form (3NF).
- In 2NF
- Contains no non-key dependencies (all attributes are dependant on the key, the whole key and nothing but the key)
- Have no transitive dependencies (non-primary key attributes must not depend on other non-primary key attributes)
What is a field?
A single piece of data in a record.
What is a record?
A group of related fields, representing one data entry.
What is a table?
A collection of records with a similar structure.
What are 3 pros of electronic databases?
- Easier to add, delete, modify and update data
- Data can be backed up and copied easier
- Multiple users, from multiple locations, can access the same database at the same time
What is an entity?
Something worthy of capturing and storing data about e.g. students, orders.