database 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:39 AM on 4/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

30 Terms

1
New cards

→ is the symbol for

functional dependency

2
New cards

x → Y

set of attributes X determines the set of attributes Y

3
New cards

where do functional dependencies come from

unique attributes, domain, constraints (person having one father)

4
New cards

2 requirements to be a key / primary key

uniqueness and minimality

5
New cards

candidate key

when you compute the closure set the individual attributes are not keys by themselves?

6
New cards

super key

unique but not minimal, column(s) that uniquely identify a row

7
New cards

functional dependency

property of one or more attributes that uniquely determines the value of other attributes

8
New cards

how do you determine functional dependency

look at the table, if the left is the same and the right is the same then its an fd

9
New cards

shortcut to find keys

any attribute not on the right side of functional dependencies must be in any key/superset

10
New cards

what is normalization for?

minimizing redundancy, anomalies, data storage

11
New cards

how does normalization work

decompose unsatisfactory relation schemas into smaller schemas

12
New cards

what it means to have atomic attributes

no repeating columns within a row, no multivalued columns

13
New cards

transitive dependency

two separate entities exist within one table

14
New cards

first normal form 1NF

each attribute is atomic aka =

  • no repeating columns within a row

  • no multi value columns

15
New cards

second normal form 2NF

each attribute functionally dependent on primary key

16
New cards

third normal form 3NF

get rid of transitive dependencies

has a prime

17
New cards

BCNF

require keys in FDs to be superkeys, each attribute on LHS must be superkey

resolve intrakey dependencies

18
New cards

prime

right side of attribute is member of a key

19
New cards

how to make a violating schema, R, fit BCNF

decompose R into a set of S relations

each relation S must be in BCNF

must be able to “recover” R from the relations S

20
New cards

decomposition algorithm for BCNF with table R

R = R1 + R2 where ((x → y) aka x det y in FD)

R1 = x+ (closure set of attr on LHS)

R2 = R - x+ + x

21
New cards

why is 3NF special case of BCNF?

when there is a prime, decomposition would ruin the FDs, LHS not superkey but RHS has prime

22
New cards

how to violate 3NF

X → A, if X is not a superkey and A is not prime

23
New cards

lossless join

decompose schema keeping original relations AND able to reconstruct without losing too

24
New cards

dependency preservation

possible to check in projected relations whether all FD are satisfied

25
New cards

which is ALWAYS lossless and dependency preservation: BCNF or 3NF

3NF

26
New cards

BCNF is always

lossless, but not always dependency preservation

27
New cards

3NF synthesis algorithm

minimal basis

  1. RHS single attr

  2. no FD removed

  3. no attr removed from the left

28
New cards

nontrivial FD’s in BCNF

are always superkeys

29
New cards

nontrivial FD do NOT look like

ex: AC → C

30
New cards