1/34
Looks like no tags are added yet.
database
an organised collection of data . allows easy storage, retrieval and management of information
electronic database benefits
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
field
a single piece of data in a record
record
a group of related fields, representing one data entry - a complete row in a table
table
a collection of records with a similar structure
primary key
a unique identifier for each record in a table.
composite key
A combination of 2 or more fields , that is unique for all records
foreign key
a field in a table that refers to the primary key in another table. Used to link tables and create relationships
database management system
software used to manage databases
secondary key
an index other than the primary key used to search and sort through the database
entity
an item of interest about which information is stored
relational database
a database which recognises the difference between entities and uses different table for each entity
flat file database
stores all data in a single table
normalisation
organising a database to reduce data duplication and improving data accuracy and consistency
1st normal form
contains only atomic values
have no repeating groups
have a primary key
atomic values
a single indivisible piece of data
2nd normal form
fulfils all 1NF requirements
have no partial dependencies
partial dependencies
when an attribute, non key column, depends on only part of the primary key rather than the whole key. Happens when the primary key is composite
3NF
fulfil 2nF requirements
have no transitive dependencies
transitive dependencies
when an attribute depends on another attribute that is not the primary key
entity relationship diagram
diagram that represents all the entities that will be in a database and the relationships between these entities
referential integrity
idea of keeping a database consistent by ensuring that any changes made to data or relationships associated with a table are accounted for in all the linked tables
what does referential integrity ensure
each foreign key links to an existing primary key or is marked as null
benefits of referential integrity
ensures data consistency and accuracy
prevents orphaned records
drawbacks of referential integrity
can impact performance due to additional checks
may require additional planning and design
transaction
a sequence of database operations treated as a single unit of work
record locking
a technique used to prevent simultaneous access to data in a database by locking a record when it is being edited or updated
redundancy
when the same piece of data is stored in more than one table in a database
lossless compression
compression algorithm that retains all the data in the file by only storing instructions needed to reconstruct original file
lossy compression
compression algorithm that removes non-essential data from a file leading to noticeable decrease in accuracy of the data
what is run length and dictionary coding a type of
lossless compression
symmetric encryption
an encryption technique where the same key is used to encrypt and decrypt data. A copy of the key must be transferred between both parties
asymmetric encryption
an encryption technique where a public key available to everyone is used to encrypt the data , and the data is decrypted by the paired private key known only to the recipient
hashing
a one-way transformation of data into an abbreviated form called a hash value.
what is the hash value used for
to validate login credentials like passwords of PINs without revealing the original data to hackers