Quiz 4 Databases

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

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:59 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

20 Terms

1
New cards

Operation that lets you select cols (Note about what is returned)

Only returns distinct stuff

<p>Only returns distinct stuff</p>
2
New cards

Operation that lets you filter cols

knowt flashcard image
3
New cards

Operation for renaming

knowt flashcard image
4
New cards

Group by operator

knowt flashcard image
5
New cards

Two ways of joining

knowt flashcard image
6
New cards

Superkey vs key

Superkey: Set of attributes that uniquely identifies a row

Key: Minimal subset of superkey (Can’t remove anything and still have a superkey)

7
New cards

Functional dependency meaning of X → Y

Knowing X means we know what Y is

8
New cards

Closure of X (X+) meaning (Note about trivial thing)

X+ = {…,…,…}

Where everything in that set is stuff that is determined by X

Trivial thing: X is included in the closure. So X+ = {X, …,…}

9
New cards

BCNF Requirement

For all functional dependencies, LHS should be a superkey

10
New cards

Entity in ERD

Square

11
New cards

Attributes in ERD

Circle

12
New cards

Relationships in ERD

Diamond

13
New cards

Derived attribtues in ERD

Dotted circle

14
New cards

Composite

Lines from other attributes connecting to the attribute

15
New cards

How to turn 1:N from ERD into a table

For the table that has the N, put the 1 side in as a FK

16
New cards

How to turn N:N from ERD into a table

  1. Create a cross reference table

  2. Put the PK’s of both sides into it as FK

  3. Also include stuff that might be coming out of the relationship

17
New cards

How to handle recursive

  1. Create a cross reference table

  2. Put the pk and source_pk

18
New cards

How to handle multivalued

  1. Create a cross reference table

  2. Put the PK of the entity as a FK for the table

  3. Put the multivalued attribute in

Basically, each row in the table is the PK of the entity (labeled as a FK), and one value of the multivalue. Repeats for that one PK for each attribute

19
New cards

Remembering which side the 1 and N goes on for ERD

“One ___ can have many ___”

Whatever answers the one gets the 1

20
New cards

BCNF Decomposition Algorithm (Note about result)

  1. Start with one BCNF violating FD. LHS is X

  2. Y = X+ = Closure of X

  3. Z = Everything else

One table becomes Y

The other table becomes X U Z

Gets it closer to BCNF, but not guranteed.