cs 331: ER to relational model

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

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:05 PM on 10/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

how do we handle weak entities?

put them into a relation with one of its primary keys being the primary key of its owner, and another primary key being any partial key

2
New cards

how do we handle 1:1 binary relationships?

choose the entity between the two which has total participation on its side. on that entity’s table, add in a foreign key to the other relation, and any attributes that might’ve belonged to the relationship itself.

3
New cards

how do we handle 1:N binary relationships?

on the entity on the “N” side, add in a foreign key to the other entity.

4
New cards

how do we handle M:N relationships?

create a new relation for that relationship. its primary key is the primary keys of both entities. other attributes on it are any attributes held by the relationship.

5
New cards

how do we handle multivalued attributes?

we create a new relation. it includes one instance of the attribute value (so for “Locations” multivalued attribute, it would be “Location”), along with the primary key of the entity its in as a foreign key.

both together make up the primary key of the multivalued attribute.

6
New cards

how do we handle n-ary relationships? what is the exception?

we make a new relation, and add to it the primary keys of every participating entity along with any attribute of the relation itself. the combination of all foreign keys make up the primary key of this relation.


however, if one entity’s side has a max cardinality of 1, then we do NOT include its foreign key as part of our new relation’s primary key.