Databases Flashcards
What is a relational database?
A database which recognises the difference between entities and uses different tables for entity.
What is an entity?
An item of interest about which information is stored.
What is a flat file?
A database that consists of a single file, usually about one entity.
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 convenience and speed.
What is normalisation?
Process if coming up with the best layout for a relational database.
What does normalisation try to accomplish?
- No redundancy
- Consistent data throughout linked tables
- Record can be added and removed without any issues
- Complex queries can be carried out
What is an index?
Data structure used to look up and access data in database quickly.
Is the primary key automatically indexed?
Yes
What does capturing data mean?
Process of getting the information you wish to use
What method do banks use to capture data from cheques?
They use Magnetic Ink Character Recognition (MICR) to get all the details apart from the amount which must be entered manually.
What does selecting data mean?
Process of reducing excess information to obtain only data you require.
What does managing the data mean?
To manipulate the information in any type of way such as sorting through it or selecting certain parts using SQL.
What is the most common language to manipulate databases in?
SQL
What are the requirements to be in First Normal Form (1NF)?
No attribute that contains more than a single value in a cell.
What are the requirements to be in Second Normal Form (2NF)?
- Database is in 1NF
- There are no partial key dependencies
What are the requirements to be in Third Normal Form (3NF)?
- Database is in 2NF
- There are no non-key dependencies
What does SQL stand for?
Structured Query Language
What is SQL?
A declarative language used to manipulate databases.
What is referential integrity?
Process of ensuring consistency as it makes sure that information is not removed if it’s requires elsewhere in a linked list.
What is a transaction defined as?
A single operation executed on data.
What does ACID stand for?
- Atomicity
- Consistency
- Isolation
- Durability
What does atomicity mean in ACID?
A transaction must be processed in its entirety or not at all.