Attribute - Describes the details/characteristics of an object or person
An organised collection of data
- Easier to retrieve, add, delete and modify data
- Easier to backup
- Can be accessed by multiple people at the same time
A simple database structure which is uses one table to hold all data/info
A field that uniquely identifies each record
An attribute that joins two tables together
Finding data within a database
DBMS(Database Management System) provides a layer of abstraction for the user and programmer
- Prevents duplicate primary keys being made
- Enforces validation rules
- Memory stick
- Optical media
- Emaiil
- Paper based
- Humans can make errors
- It is slower
OCR (Optical Character Recognition)
OMR( Optical Mark Recognition)
Captures data much quicker
Reduces human error
EDI (Electronic Data Interchange) - Where data is automatically read & transferred from one computer to another
- All field names must be unique
- Values in the same field must have the same domain(have the same value)
- Values in fields must be atomic(one value per field)
- No records can be identical
- Each table needs a primary key
- The data must be in 1NF
- There must be no partial dependencies (where one/more fields depend on part of the primary key)
- Must be in 2NF
- Transitive dependencies must be removed (Where a value depends on another field that isn't the primary key)
- JSON
- XML
- CSV
SQL(Structured Query Language) | QBE(Query By Example)
- Allows you to Specify tables
- Allows you to Specify criteria
- Allows you to Specify fields
- Use boolean expressions
Makes in easy to:
- Add data
- Modify data
- Delete data
- Search data
Any information processing that's divided into individual, indivisible operations called transactions
The transaction must succeed or fail, it should never be partially complete
The transactions processing must follow a set of rules known as ACID. ATOMICITY CONSISTENCY ISOLATION DURABILITY.
Where a change to a database must be completely done or not done at all. Half changes must not be saved
Any change in the database must retain the overal state of the database
Where a transaction mustn't be interrupted by another transaction. It must occur in isolation so that other processes/other users can't access the data concerned.
The DBMS enforces Isolation via record locking. This locks any records that are affected via transactions. Putting them in a read only state.
A technique that's used to prevent multiple users accessing the same object/record in a database at the same time. This prevents data inconsistencies
Where once a change is made to a database, it mustn't get lost due to system/power failure
The DBMS writes the effects of the transactions immediately back to the secondary storage rather than holding any changes in any form of volatile memory
Ensures consistency between related tables in a relational database