



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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?