Assignment 4
Assignment 4
Assignment 4
2. Tracks, connecting stations. You can assume for simplicity that only one track
exists between any two stations. All the tracks put together form a graph.
4. Train schedules recording what time a train passes through each station on its
route. You can assume for simplicity that each train reaches its destination on
the same day, and that every train runs every day. Also for simplicity,
assume that for each train, for each station on its route, you store (a) time in,
(b) time out (same as time in if it does not stop), and (c) a sequence number
so the stations in the route of a train can be ordered by sequence number.
6. After creating the ER diagram, create the associated set of tables (don't
bother about types, just give the attributes of each relation).
Tables:
b. Train(id, name)
c. Station(id, name)
e. Track(station_id1, station_id2)
After creating the ER diagram, create the associated set of tables (don't bother about
types, just give the attributes of each relation).
Tables:
a. ResourceCenter(id, capacity)
b. Faculty(id, name, institute_id)
c. Coordinator(faculty_id, resourcecenter_id)
Note that since not all faculty members are coordinators we don't fold
this into the Faculty table
d. Attends(faculty_id, resourcecenter_id)
For the same reason as above, this is not folded into Faculty
e. Institute(id, name)
3. If you have extra time after finishing the above ER diagram, add the clicker quiz
questions, and the answers submitted by each participant, to your ER diagram.
Tables:
a. ResourceCenter(id, capacity)
b. Faculty(id, name, institute_id)
c. Coordinator(faculty_id, resourcecenter_id)
Note that since not all faculty members are coordinators we don't fold this
into the Faculty table
d. Attends(faculty_id, resourcecenter_id)
For the same reason as above, this is not folded into Faculty
e. Institute(id, name)
f. ClickerQuizQuestion(id, questiontext, choice1, choice2, choice3, choice4,
correctanswer)