



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Relational Database Design, Relational Model, Keys, Schema Vs. Data, Usage of Keys, Look up, Pointers, Database Design, Entity-relationship Model, E/R Basics, Attributes of Relationships, Multiplicity of Relationships, N-ary Relationships, N-ary Versus Binary Relationships, Roles in Relationships, Weak Entity Sets, Many-one, One-one, Modeling N-ary Relationships, ISA Relationships, Redundancy, Reference
Typology: Slides
1 / 5
This page cannot be seen from the preview
Don't miss anything!




3
4
5
Student SID 142 (^) name Bart (^) age 10 GPA 2. 123857 Milhouse 10Lisa 8 3.14. 456 Ralph 8 2.
6
9
10
Ā Represented as a rectangle
Ā Represented as a diamond
Ā Represented as ovals
11
nameSID^ Students^ Enroll Courses^ CIDtitle
12
Students Courses CID title
SID Enroll name grade
Rooms In Buildings name year
number capacity In
Seats
number L/R?
Strictly speaking, the two arrows in this diagram should be rounded
Students Enroll Courses TAās
TAās
Students Enroll Courses
Note that the multiplicity constraint is lost
21
Students Courses CID title
SID Enroll name
office GradStudents
22
23
Ā For states, record name and capital (city) Ā For counties, record name, area, and location (state) Ā For cities, record name, population, and location (county and state)
Ā Names of states are unique Ā Names of counties are only unique within a state Ā Names of cities are only unique within a county Ā A city is always located in a single county Ā A county is always located in a single state
24
Cities In States
name capital
name population
county_area
county_name
Cities IsCapitalOf
name population
Counties
name area name
In In States
27
Trains StopsAt Stations
name address
number
E/L?
engineer E/L? (^) time
28
Trains Stations
name address
number engineer
time
ExpressTrains
LocalTrains LocalStations ExpressStations
LocalTrainStops ISA
time ExpressTrainStops Is the extra complexity worth it?