What is an Entity?
An item, object or thing a database is about
What is a flat-file database?
A database where data is all stored on one large table
What is a relational database?
Data stored in separate tables linked with foreign keys
What is a Primary key?
A field which can be used to uniquely identify a record
Name ways of collecting data
Webforms, Barcodes, QR codes, Written forms with optical character recognition, Magnetic ink/ stripes
What are the requirements of 1NF?
Must have a primary key, data must be atomic, no repeating attributes, each field must a unique.
What are the requirements of 2NF?
Must be in 1NF, no partial dependencies.
What are the requirements of 3NF?
Must be in 2NF, no transitive dependencies.
What is a partial dependency?
When a field only depends on a part of a composite key, not all of it.
What is a transitive dependency?
When a field depends on another field that isn’t a primary/composite key
What is a transaction?
A change made to a database.
What is meant by Atomicity?
A transaction must be fully completed for it to be recorded.
What is meant by Consistency?
Any changes made must not break the database, keeping it consistent with how it was before.
What is meant by Isolation?
A transaction must be kept isolated so it doesn’t interfere with other transactions.
What is meant by Durability?
A transaction must remain in the database once saved
What is meant by Data Integrity?
Data integrity is making sure that data remains accurate, complete and consistent, without being lost, changed or corrupted.
How is Data integrity maintained?
Use of validation and verification.
What is Referential Integrity?
the principle of ensuring that relationships between linked database tables remain valid, consistent, and accurate
Eg. Ensuring that an order cannot be placed if the customer does not exist in the customer table
What is Redundancy?
Multiple clones of the same database kept at different places with backups to use if one of them is lost
Name 3 relationships used in an entity relationship diagram
1 to many, many to many, many to one
What is ACID
Atomically
Consistency
Isolation
Durability