

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!


information/application requirements → entity-relationship model → relational model → physical data model
Given that both entity-relationship model and relational model are essentially abstractions of reality and both can be used to model a database, would it make sense to switch the two in the above process ? Why not? , Answer: Solution: No. E-R model is at a higher level of abstraction and closer to the application requirements than the relational model. It has more concepts, and its intuitive diagrammatic represen- tation make it easier from humans to work with it. Relational model is closer to the on-disk represen- tation of the data, and lends itself to much easier implementation. Having only one abstract concept, relation, also makes it hard to directly build relational schemas from the application requirements.
Take a look at this website for more information about types of data that needs to be stored (http://www.databaseolympics.com/). Answer: Diagram on the next page.
Write down a relationship in the above E/R diagram where you might want to add such a constraint. Answer: The player-country relationship is participatory; there are many others.
Heat
population^ Country
country-id
area
Name
Olympics
startdate oly-id
enddate
city Event
event-id (^) name is-team- event
Of
Held In
Held At
participant-id
parent child
date
Participates
result medal-if- any
Player birthdate
name Team
Participant
IsA
Part height Of weight
Notes:
result- measured-in
Has
heat-id
Figure 1: Example ER Diagram