返回卡包市场

4.10.3 Fundamentals of Databases (Normalisation)

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

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

卡片预览 (19 张)

#1
正面 (问题)

What is Normalisation

背面 (解答)

The process which helps to organise and structure a database in a way which improves efficiency and integrity

#2
正面 (问题)

What advantages does Data Normalisation bring

背面 (解答)

• Reduces data redundancy • Reduces Data inconsistency • One change cascades across related record making modification simpler • Eliminates insertion/update/delete anomalies

#3
正面 (问题)

What are insert anomalies

背面 (解答)

Where data cannot be added to a database because it depends on the presence of unrelated data (e.g. In a “Student-Course” table, you cannot add a new course until at least one student enrols in it, because the student ID (primary key) cannot be null.)

#4
正面 (问题)

What are deletion anomalies

背面 (解答)

Where deleting a record unintentionally removes unrelated, valuable data due to poor normalization and data redundancy. (e.g. If a database lists students and their enrolled courses in one table, deleting the only student in a specific course unintentionally deletes the information about the course itself.)

#5
正面 (问题)

What are update anomalies

背面 (解答)

data inconsistencies in a database occurring when redundant data is updated in some, but not all, records.

#6
正面 (问题)

What are the disadvantages of normalisation

背面 (解答)

• If the data is mad too atomic, fields may become unmeaningful • A more complex database is made meaning that querying data is also more complex and potentially slower

#7
正面 (问题)

What is meant by a dependency

背面 (解答)

A value that varies in line with another value

#8
正面 (问题)

What are the conditions for 0NF

背面 (解答)

• Non-Atomic data • Repeating groups of data • A PK for each record

#9
正面 (问题)

What are the conditions for 1NF

背面 (解答)

• No repeating geoups of attributes (2 of the same attribute) • Data is atomic • Each record must have a primary key

#10
正面 (问题)

Process of 0NF –> 1NF

背面 (解答)

• Separate repeating groups of data into a seperate table. • Separate non-atomic values into separate attributes • Declare a primary key

#11
正面 (问题)

What is meant by a partial key dependency

背面 (解答)

Where the value of a data field relies entirely on part of the primary key where the primary key is a composite key

#12
正面 (问题)

What are the conditions for 2NF

背面 (解答)

• Must already be in 1st Normal Form • The must be no Partial Key dependencies

#13
正面 (问题)

How do you identify and fix partial key dependencies for n partial dependencies

背面 (解答)

• First ask for each non-key attribute “if the primary key changes does the attribute value change • Make n new tables where for each new table the primary key is the part of the primary key that one of the field relied on.

#14
正面 (问题)

What is meant by a non-key dependency

背面 (解答)

Where an attribute is determined by another attribute in a table that is not the primary key

#15
正面 (问题)

What are the conditions for 3NF a

背面 (解答)

• Must already be in second normal form • Must have no non-key dependencies

#16
正面 (问题)

How do you find non-key dependencies a

背面 (解答)

Ask yourself: “Is it ever possible for two records to have the same value in this field?”.

#17
正面 (问题)

How do you fix non-key dependencies for n non-key dependencies

背面 (解答)

• Make n new tables, and for each one you should contain the non key dependency attributes

#18
正面 (问题)

What is meant by atomic data

背面 (解答)

When each column has only one piece of data in it

#19
正面 (问题)

Describe problems that can occur in database that is not fully normalised

背面 (解答)

• Redundant data may waste storage space • Data inconsistency where two copies of the same data store different values • No cascade updates meaning each copy of the same data needs to be separately updated if change • It may be difficult to select/edit data if it is not atomic or if there are repeating groups