返回卡包市场

3.2 Databases

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 24内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (24 张)

#1
正面 (问题)

What are 2 types of databases?

背面 (解答)

flat file database relational database

#2
正面 (问题)

What is a flat file database?

背面 (解答)

A single file that is typically based around a single entity and its attributes.

#3
正面 (问题)

What is a relational database?

背面 (解答)

A database where a different file/table is created for each entity. The tables are linked together via attributes.

#4
正面 (问题)

Why use a relational database instead of a flat file?

背面 (解答)

If there is a 1 to many relationship between 2 entities, multiple records will be needed for the same entity to be linked to multiple other entities. This results in redundant data/wasted space as the records will contain repeated information.

#5
正面 (问题)

What is an entity?

背面 (解答)

An item of interest about which information is stored.

#6
正面 (问题)

What are attributes?

背面 (解答)

Characteristics of the entity about which data is collected.

#7
正面 (问题)

What are the 3 keys?

背面 (解答)

primary key secondary key foreign key

#8
正面 (问题)

What is a primary key?

背面 (解答)

The field/attribute that acts as a unique identifier for each record in the table.

#9
正面 (问题)

What is a field and what is a record?

背面 (解答)

A field is a database column and a record is a database row. i.e. personID

#10
正面 (问题)

What is a foreign key?

背面 (解答)

The attribute that links 2 database tables together. This acts as the primary key of one table and the foreign key of another.

#11
正面 (问题)

What is a secondary key?

背面 (解答)

An attribute that is used for indexing in order to search for records quickly or put records in order i.e. name

#12
正面 (问题)

What are 3 types of table entity relationships?

背面 (解答)

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

#13
正面 (问题)

What is the one-to-one relationship?

背面 (解答)

Each entity can only be associated with one other entity i.e. husband and wife

#14
正面 (问题)

What is the one-to-many relationship?

背面 (解答)

One entity can be associated with many other entities i.e. mother and children

#15
正面 (问题)

What is the many-to-many relationship?

背面 (解答)

One entity can be associated with many other entities and the same the other way around i.e. students and courses

#16
正面 (问题)

How are these shown in diagrams?

背面 (解答)

direct line attached to a table is one three lines attached to the table is many

#17
正面 (问题)

What is normalisation?

背面 (解答)

The process of creating the best possible layout for a relational database.

#18
正面 (问题)

What are the aims of normalisation?

背面 (解答)

• remove unnecessary duplicates (minimise data redundancy) • consistent data throughout linked tables (maximise data consistency) • records can be added/removed without causing issues

#19
正面 (问题)

What are 3 types of normalisation?

背面 (解答)

1st 2nd and 3rd normal form

#20
正面 (问题)

What are the requirements for 1st normal form?

背面 (解答)

data is atomic no repeating fields contains a primary key

#21
正面 (问题)

What are the requirements for 2nd normal form?

背面 (解答)

1nf every field is dependent on the primary key

#22
正面 (问题)

What are the requirements for 3rd normal form?

背面 (解答)

2nf all attributes depend on the primary key, the whole primary key and nothing but the primary key i.e. no transitive relationships (non key fields can’t depend on other non key fields)

#23
正面 (问题)

What is indexing?

背面 (解答)

Storing the position of each record in the order of a specific attribute. This is automatically the primary key but typically a secondary key will be indexed to make data easier and quicker to search for.

#24
正面 (问题)

What does SQL stand for?

背面 (解答)

structured query language