Back to marketplace

1.3.1 Databases

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

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

Card preview (13)

#1
Front (Question)

What is a database?

Back (Answer)

A structured store of data. Usually consists of tables, fields, and records.

#2
Front (Question)

What is a flat-file database, and what issues do they face?

Back (Answer)

A database where all data is stored in one table • Difficult to change the format of the data • Space is wasted through redundant data which increases the size of the database • Data is harder to update as it could be in multiple places - Data might become inconsistent for example the amount of an item in stock might be reduced in one record but not in other records. • Data access speed is slow

#3
Front (Question)

What is a relational database, and what are the benefits of using them?

Back (Answer)

Multiple related tables • Simpler to change the format of data • Saves space by reducing data duplication • Maintains data consistency/integrity • Improved security as able to control access to data

#4
Front (Question)

Define and give an example of a primary key

Back (Answer)

A field that has a unique value to act as a unique identifier for every record in that table. Example: UserID in a table of users

#5
Front (Question)

Define and give an example of a foreign key

Back (Answer)

• A field that links to a (primary) key in a second table. • Provides a link between tables Example: CustomerID in an orders table to link to the users table

#6
Front (Question)

Define and give an example of a secondary key

Back (Answer)

• Not unique but are likely to be the fields that users are likely to want to search by. • Indexed allowing for faster searching. Example: Surname or date of birth in a user table.

#7
Front (Question)

Define indexing and its associated pros and cons.

Back (Answer)

The index gives the position of each record according to its primary key. Advantage: Searches of indexed fields can be performed more quickly. Disadvantage: The index has to be rebuilt on edit and takes up extra space in the database.

#8
Front (Question)

What three types of database relationships exist, and which one is prohibited?

Back (Answer)

• 1:1 – One to One • 1:M – One to Many • M:M – Many to many M:M - These need to be resolved using a middle table with many coming out of each side.

#9
Front (Question)

What would a resolved M:M relationship diagram look like?

Back (Answer)

M:M - These need to be resolved using a middle table with many coming out of each side.

Card back image
#10
Front (Question)

Give some examples of how data can be captured

Back (Answer)

• Online Form • Optical Character Recognition (OCR) • Optical Mark Recognition (OMR) • Sensors

#11
Front (Question)

Give some examples of sensors and what they may be used for.

Back (Answer)

Altimeter: Measures height from sea level Accelerometer: Measure forces – When it moves. Gyroscope: Used to measure rotation. Thermistor: To read the temperature GPS: To determine geographical location Magnetometer: To determine direction. Heart rate sensor: Detects electrical activity in the heart

#12
Front (Question)

Give some examples of the methods used to exchange data

Back (Answer)

CSV: A format with values separated by commas JSON: Uses human-readable text to transmit data objects consisting of attribute-value pairs XML: A mark-up language that uses tags to denote data. API: A prewritten set of subroutines that provide access to a company’s data. Used by programmers to transfer data between computer systems.

#13
Front (Question)

Data Capture: What is OMR and OCR?

Back (Answer)

Optical Mark Recognition (OMR) - Reads marks on pre-formatted forms to enable inputs to be quickly scanned. Also reduces human error. Optical Character Recognition (OCR)- Allows a computer to identify characters and convert them into their binary equivalents. Example use: Automatic number plate recognition (ANPR).