dbs exam 2 schema mapping

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/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

5 Terms

1
New cards

How do you map a strong entity?

1 option: for each strong entity E creation a relation R and include as attributes of R all of the simple attributes of E. If E has composite attributes, include only its simple components. Designate one key attribute as the primary key of R. If R has multi-valued attributes, do not include them in this relation R.

2
New cards

How do you map weak entities?

1 option: For each weak entity E, create a relation R. Include simple attributes of E as attributes of R. The primary key of R will be the combination of the partial key of E and a foreign key to the strong attribute E is related to.

3
New cards

How do you map multi-valued attributes?

For each multi-valued attribute A of an entity E, create a relation R. Include as an attribute of R an attribute that describes A. If A is composite, all of its simple components will be attributes in R that describe A. The primary key of R will be the combination of this attribute (corresponding to A, several if A composite) and a foreign key to the primary key of table for E.

4
New cards

How do you map m:n binary relationships?

For each M:N relationship between entities S and T, create a table R. Include as attributes of R any simple attributes corresponding to the M:N relationship. The primary key of R will be the combination of foreign keys to the primary keys of S and T. Simple attributes of the relationship are not included in the primary key.

5
New cards

How do you map unions?

Surrogate key approach. For an entity E which is the child of many superclasses, we create a surrogate key if all superclasses do not already share the same primary key. The surrogate key will be the key attribute in the table R corresponding to E. In the relation for every superclass of E, include a foreign key to the primary key of R.

Explore top flashcards

ARC 308 - Exam 2
Updated 374d ago
flashcards Flashcards (31)
Format 1MEB
Updated 1022d ago
flashcards Flashcards (104)
G8 U3
Updated 380d ago
flashcards Flashcards (21)
muscles of the body
Updated 731d ago
flashcards Flashcards (106)
11SCIE Chemistry 2
Updated 3d ago
flashcards Flashcards (27)
ARC 308 - Exam 2
Updated 374d ago
flashcards Flashcards (31)
Format 1MEB
Updated 1022d ago
flashcards Flashcards (104)
G8 U3
Updated 380d ago
flashcards Flashcards (21)
muscles of the body
Updated 731d ago
flashcards Flashcards (106)
11SCIE Chemistry 2
Updated 3d ago
flashcards Flashcards (27)