Week 6 / 10.22.02 ER
Analysis Part 1. Relationships Ternary Relationship Student : Course : Professor Recursive Relationship Child is sibling of Child Derivative Attribute BMI or Body Mass Index. Derived from Height and Weight. 1:1 Relationship Vehicle : VIN Number 1:N Relationship Rose : Varieties M:N Relationship Patients : Appointments Part 2. Conceptual Schema Entities Agency (identified by name) Public Transportation Routes Stops Person Need/Subject Area Address (made up of several weak entities) Street Number Street Name City Name State (fixed length field, 2 letters) Zip code (fixed length field, 9 digits) Distance (calculated by database operator) Relationships Agency <has> Office Location – hierarchical relationship Office Location <has> Address 1:1 Address <has> Street Number 1:1 Address <has> Street Name 1:1 Address <has> City Name 1:1 Address <has> State 1:1 Address <has> Zip Code 1:1 Person <has> Address 1:N Route <has> Stops – hierarchical relationship 1:N Stops <has> Address Person <has> Need Agency <deals with> Subject/Need The conceptual schema for the this system is rather simple. An agency entity which deals with a particular subject or need entity is at a stop entity of a public transportation route that also has a stop entity that is close to the address entity of a person entity that has the need entity served by the agency entity. I dealt with the problem in a fairly simple way, allowing all information to be held in one database. I expect that in reality this type of database would also allow a person to find the schedule for the public transportation routes and to see the times at which the bus, train, etc. arrives at each stop. I imagine if enough funding was available the database would allow people to find out which agencies could help Spanish or Chinese speakers. In the entity-oriented approach there may be a tendency to over-describe an entity. This occurs when one seeks to incorporate all data elements need to characterize an entity. In the request-oriented approach some data elements may be left out or modified to fit the needs of the requester. In this problem, the entity oriented approach might seek to describe the agency entity in full, including staffing, hours, facilities details and more. By using the request-oriented approach we are able to describe the agency entity only to the extent that is necessary to fulfill the transportation needs of the person in need. When user needs are taken into consideration the entity classes deemed necessary in a database can change radically. Part 4.
Part 5. Part 6. |
Erika A. McCoy eamccoy@jhu.edu Updated October 22, 2002. |