Back to marketplace

1.3.2 Databases

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Flatfile database

Back (Answer)

• consists of only a single file [1] • requires little expertise to maintain [1] • may have redundant data which can lead to increased storage requirements [1] • flat file database is harder to update so data might be inconsistent [1]

#2
Front (Question)

Relational database

Back (Answer)

• a relational database is one that uses different tables for different entities • consists of linked tables [1] • maintains data integrity [1]

#3
Front (Question)

Entity

Back (Answer)

an item of interest about which information is stored

#4
Front (Question)

Primary key

Back (Answer)

• a unique identifier for each record [1] • used to establish relationships between tables • can be used to fetch any record from a table

#5
Front (Question)

Foreign key

Back (Answer)

• the field/column which links two tables together [1] • it is the field/column that refers to the primary key in another table [1]

#6
Front (Question)

Secondary key

Back (Answer)

• specifying another attribute to be indexed for faster search [1] • an indexed field that is not unique • the index consumes additional storage space in the database [1]

#7
Front (Question)

Entity- relationships modelling

Back (Answer)

• one -to one • one - to many • many to many

#8
Front (Question)

One - to - one

Back (Answer)

Each entity can only be linked to one other entity

#9
Front (Question)

One- to- many

Back (Answer)

One table can be associated with many other tables

#10
Front (Question)

Many-to-many

Back (Answer)

Many tables can be associated with many other tables

#11
Front (Question)

Normalisation

Back (Answer)

• the process of coming up with the best possible layout for a relational database • normalisation tries to accomplish the following : • no redundancy so data integrity is maintained • consistent data throughout linked tables • records can be added and removed without issues • complex queries can be carried out

#12
Front (Question)

First normal form 1NF (To get to 1NF a tables must follow 5 rules)

Back (Answer)

• all field names must be unique ( to avoid confusion about which record should be retrieved or updated) • values in fields must be from the same domain (e.g data type) • values in fields should be atomic so for every cell there must only be a single value • no two records can be identical • each table needs a primary key

#13
Front (Question)

No duplicate records in 1NF

Back (Answer)

this is because duplicate records take up unnecessary space and can cause inconsistencies if updates are not performed on all of them

#14
Front (Question)

Second normal form (2NF)

Back (Answer)

• the data is already in 1NF • any partial dependencies have been removed • meaning no fields can depend on only part of a composite primary key • so each table should serve its own single purpose

#15
Front (Question)

Partial dependency

Back (Answer)

• Means one of more fields depend on only part of the primary key • this issue can arise if the primary key is a composite key

#16
Front (Question)

Fixing a many to-many relationship

Back (Answer)

• create a linking table • assign primary key from the 2 initial tables as the composite primary key for the new linking table • this flips the M:M relationship to become to 1:M relationships

#17
Front (Question)

Third normal form (3NF)

Back (Answer)

• data is already in 2NF • any non-key dependencies are removed • all keys are dependant on the primary key, the whole primary key and nothing but the primary key

#18
Front (Question)

Non key dependencies

Back (Answer)

When the value of a field depends on the value of another field which is not the primary key

#19
Front (Question)

Indexing

Back (Answer)

• creates a Data structure on specific fields/columns allowing the database engine to quickly locate and access relevant records during queries • primary key is automatically indexed • adding an index to a field speeds up searches on that field which would otherwise have to be searched sequentially

#20
Front (Question)

Indexing advantages

Back (Answer)

• allows faster search + data retrieval from the indexed field[1]

#21
Front (Question)

Indexing disadvantages

Back (Answer)

• consume additional storage space • for small tables, benefits of indexing may be negligible or even counter productive

#22
Front (Question)

Handling data

Back (Answer)

Consists of 4 parts : - capturing data - selecting data - managing data - exchanging data

#23
Front (Question)

Data capturing methods

Back (Answer)

• paper based forms • OCR (optical character recognition) • OMR (optical mark recognition) • MICR (magnetic ink character recognition) • sensors • smart card readers • barcode scanners

#24
Front (Question)

Paper based forms

Back (Answer)

• involves a human reading the form and manually typing the information into a computer based system • to avoid errors : • every part of the form must be labelled clearly • instructions to complete the form in black pen • instructions to complete the form in capital letters • use of tick boxes • squares for entering each letter separately