From ER to the relational model

Description

1 Database Flashcards on From ER to the relational model, created by linneamd on 14/03/2016.
linneamd
Flashcards by linneamd, updated more than 1 year ago
linneamd
Created by linneamd about 8 years ago
10
1

Resource summary

Question Answer
How would you change this to a relational schema?
Translate to a relational model
Translate to relational model
Translate using 3 relations
Translate using 3 relations
What should you do when you have: Entity type -> Relation. Choose an identifier as primary key.
What should you do when you have: Weak entity type -> Relation. Use the weak identifier + the identifier of the identifying entity type as primary key.
What should you do when you have: One-to-many relationship 1.Foreign key (i.e., additional attribute/column). 2. Relation, two foreign keys, primary key of the entity to the N side.
What should you do when you have: Many-to-many relationship Relation, two foreign keys, primary key of the entity to the N side, but both foreign keys form the primary key.
ER to relational: Entity type Entity relation
ER to relational: 1:1 or 1:N relationship type Foreign key (or relationship relation)
ER to relational: M:N relationship type Relationship relation and two foreign keys
ER to relational: n-ary relationship type Relationship relation and n foreign keys
ER to relational: Simpel attribute Attribute
ER to relational: Composite attribute Set of simple component attributes
ER to relational: Multivalued attribute Relation and foreign key
ER to relational: Value set Domain
ER to relational: Key attribute Primary (or secondary) key
What 3 elements defines a trigger? – EVENT – CONDITION – ACTION
Show full summary Hide full summary

Similar

FLAT FILE VS RELATIONAL DATABASE
rosiejones
OCR gcse computer science
Jodie Awthinre
GCSE AQA Computer Science - Definitions
James Jolliffe
Managing Digital Data Review
Shannon Anderson-Rush
SQL Quiz
Chris Cronin
Midterm 2 (Chapter 5 - 13)
Yorria Raine
GCSE AQA Computer Science - Definitions
moffat00
Database Final Exam
dbm
Data, Information and Databases
maryamxjay
AS Levels ICT -Form Controls
lukejones
C170 - Practice Test
Craig Willey