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)

what is a database

Back (Answer)

• An organised collection of data (persistent organised store of related data)

#2
Front (Question)

what does organising data in an electronic database allow for? (advantages)

Back (Answer)

• easier + quicker adding, modification, deletion, updating and searching • easier to back up data • can be accessed by multiple people at the same time from different locations

#3
Front (Question)

what is data

Back (Answer)

• information stored which can to be personal in some cases • it can be collected and analysed

#4
Front (Question)

what is information

Back (Answer)

• facts and details about a certain thing in context.

#5
Front (Question)

what is knowledge

Back (Answer)

• something humans obtain/acquire and remember by reading or searching up topics to broaden understanding.

#6
Front (Question)

what is a relational database

Back (Answer)

• Where data is stored in tables grouped by entity and linked (related) together.

#7
Front (Question)

what is a relationship and what is needed in both tables for it to work

Back (Answer)

• link between tables • we need a common field in both tables for relationship to work

#8
Front (Question)

when designing a relational database and linking tables, relationships come in what 3 forms?

Back (Answer)

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

#9
Front (Question)

what do we use to sketch the relationships between tables

Back (Answer)

• entity-relationship diagram (ERD) • can also call it entity-relationship model

#10
Front (Question)

what is a flat file database. what is a suitable use for this type of database (think in terms of quantity of data)

Back (Answer)

• A database with multiple independent tables or single table • no links/relationships between tables • suitable to store small amount of data e.g contact details, small product database, maintain game/music collection

#11
Front (Question)

what is a flat file database normally saved as

Back (Answer)

• a comma-separated values file (CSV)

#12
Front (Question)

what are the positives to a flat file database

Back (Answer)

• simple + require little expertise to maintain • quick to set up • all records stored in one place

#13
Front (Question)

what are the downsides to a flat file database

Back (Answer)

• no links –> inefficient • can become difficult to maintain, expand in future and update, less secure • not easy to query - searching slower • data can be easily duplicated (take up unnecessary storage space due to redundancy)

#14
Front (Question)

what are the advantages of a relational database (multiple diff. tables linked together using relationships created by primary and foreign keys)

Back (Answer)

• Data Integrity maintains consistency, accuracy and reliability of data • referential integrity can be enforced which improves data integrity • Linked tables makes it easier to query, add, modify, delete, update, search and manage/maintain • Easier to change format • Provides security features - keeping data secure is of high importance • Normalised to 3NF • Ensures less data duplication therefore less redundant data reducing file size

#15
Front (Question)

drawbacks of relational database

Back (Answer)

• more difficult to set up and need more technical expertise to do things like normalisation • data spread out between multiple table. some tables may be link tables which only display key fields / references • more expensive as DBMS required

#16
Front (Question)

what is a primary key

Back (Answer)

• field in a table that is unique for every record

#17
Front (Question)

what does the primary key ensure for each record

Back (Answer)

• primary key ensures that each record is distinct from the others.

#18
Front (Question)

what is a foreign key

Back (Answer)

• it’s the unique primary key field of one table that is stored in another for purpose of creating a link between the tables. (linking field in a table that is a primary key in a related table)

#19
Front (Question)

fill the gaps: • a foreign key value must have a corresponding _________ ____ value in another _____

Back (Answer)

• primary key • table

#20
Front (Question)

In order to combine information from two tables, there must be a what?

Back (Answer)

• there must be a primary/foreign key pair.

#21
Front (Question)

what are composite keys are made up of.

Back (Answer)

• more than one attribute

#22
Front (Question)

give an example of composite key used for taking one school course

Back (Answer)

• none of the attributes on their own (Subject and StudentID) can be guaranteed unique. • But, a student can only enrol for a subject just once so combination of  Subject and StudentId will be unique. • Combining these two attributes will form a composite primary key. (to uniquely identify a record)

#23
Front (Question)

what is a secondary key

Back (Answer)

• a field by which records are likely to be searched and is therefore indexed

#24
Front (Question)

what is meant by “indexed”

Back (Answer)

• process of creating a linked list (database index) to improve speed of data retrieval operations on a dataset table at the cost of additional writes and storage space to maintain the index data structure.