Database Systems Final - Normalization

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

17 Terms

1
New cards

What is a primary key

An attribute that uniquely identifies rows; cannot be null

2
New cards

What is a foreign key

An attribute that references a primary key in another table

3
New cards

What is entity integrity

Primary key attributes cannot be null

4
New cards

What is referential integreity

Foreign key must match a primary key or be null

5
New cards

What is a domain constraint

Rules defining allowable attribute values

6
New cards

Definition of functional dependency

A determines B if each value of A uniquely determines a value of B

7
New cards

What is a relation in 1NF

When it has no multivalued attributes and all values are atomic

8
New cards

When is a relation in 2NF

No partial dependencies (non-key depends on part of composite key)

9
New cards

When is a relation in 3NF

No transitive dependencies (non-key depends on non-key)

10
New cards

What is non loss decomposition

When decomposed tables can be joined to restore the original relation

11
New cards

What determines record size

Total storage size of all attributes in a table row

12
New cards

What is denormalization

Reintroducing redundancy to improve performance (3NF → 2NF)

13
New cards

When is denormalization used

When a normalized structure causes slow joins or heavy querying

14
New cards

What is horizontal partitioning

Splitting a table by rows

15
New cards

What is vertical partitioning

Splitting a table by columns

16
New cards

What is an index

A data structure that speeds up searching and retrieval

17
New cards

What is the tradeoff of indexes

Faster reads but slower writes (updates/ inserts)