Database Modeling & Design Fourth Edition- P53 pdf

5 374 0
Database Modeling & Design Fourth Edition- P53 pdf

Đang tải... (xem toàn văn)

Thông tin tài liệu

References 247 Zachmann, J. A. “A Framework for Information Systems Architec- ture,” IBM Systems Journal 26,3 (1987), IBM Pub. G321-5298. Zachmann Institute for Framework Advancement, http://www.zifa.com. Teorey.book Page 247 Saturday, July 16, 2005 12:57 PM Teorey.book Page 248 Saturday, July 16, 2005 12:57 PM 249 Exercises ER and UML Conceptual Data Modeling Problem 2-1 Draw a detailed ER diagram for an car rental agency database (e.g., Hertz), keeping track of the current rental location of each car, its cur- rent condition and history of repairs, customer information for a local office, expected return date, return location, car status (ready, being- repaired, currently-rented, being-cleaned). Select attributes from your intuition about the situation and list them separately from the diagram, but associated with a particular entity or relationship in the ER model. Problem 2-2 Given the following assertions for a relational database that represents the current term enrollment at a large university, draw an ER diagram for this schema that takes into account all the assertions given. There are 2,000 instructors, 4,000 courses, and 30,000 students. Use as many ER constructs as you can to represent the true semantics of the problem. Teorey.book Page 249 Saturday, July 16, 2005 12:57 PM 250 Exercises Assertions: • An instructor may teach one or more courses in a given term (average is 2.0 courses). • An instructor must direct the research of at least one student (average = 2.5 students). • A course may have none, one, or two prerequisites (average = 1.5 prerequisites). • A course may exist even if no students are currently enrolled. • Each course is taught by exactly one instructor. • The average enrollment in a course is 30 students. • A student must select at least one course per term (average = 4.0 course selections). Problem 3-1 Draw UML class diagrams for an car rental agency database (e.g., Hertz), keeping track of the current rental location of each car, its current condi- tion and history of repairs, customer information for a local office, expected return date, return location, car status (ready, being-repaired, currently-rented, being-cleaned). Select attributes from your intuition about the situation. Draw one diagram showing the relationships of the classes without the attributes listed, then show each class individually with the attributes listed. Problem 3-2 Given the following assertions for a relational database that represents the current term enrollment at a large university, draw an UML diagram for this schema that takes into account all the assertions given. There are 2,000 instructors, 4,000 courses, and 30,000 students. Use as many UML constructs as you can to represent the true semantics of the problem. Assertions: • An instructor may teach none, one, or more courses in a given term (average is 2.0 courses). Teorey.book Page 250 Saturday, July 16, 2005 12:57 PM Exercises 251 • An instructor must direct the research of at least one student (average = 2.5 students). • A course may have none, one, or two prerequisites (average = 1.5 prerequisites). • A course may exist even if no students are currently enrolled. • Each course is taught by exactly one instructor. • The average enrollment in a course is 30 students. • A student must select at least one course per term (average = 4.0 course selections). Conceptual Data Modeling and Integration Problem 4-1 The following ER diagrams represent two views of a video store database as described to a database designer. Show how the two views can be inte- grated in the simplest and most useful way by making all necessary changes on the two diagrams. State any assumptions you need to make. Teorey.book Page 251 Saturday, July 16, 2005 12:57 PM . selections). Conceptual Data Modeling and Integration Problem 4-1 The following ER diagrams represent two views of a video store database as described to a database designer. Show how the two. 16, 2005 12:57 PM 249 Exercises ER and UML Conceptual Data Modeling Problem 2-1 Draw a detailed ER diagram for an car rental agency database (e.g., Hertz), keeping track of the current rental. (average = 4.0 course selections). Problem 3-1 Draw UML class diagrams for an car rental agency database (e.g., Hertz), keeping track of the current rental location of each car, its current condi- tion

Ngày đăng: 05/07/2014, 05:20

Mục lục

  • Chapter 2 The Entity-Relationship Model

  • Chapter 3 The Unified Modeling Language (UML)

  • Chapter 4 Requirements Analysis and Conceptual Data Modeling

  • Chapter 5 Transforming the Conceptual Data Model to SQL

  • Chapter 7 An Example of Logical Database Design

  • Chapter 9 CASE Tools for Logical Database Design

  • Appendix: The Basics of SQL

  • Solutions to Selected Exercises

Tài liệu cùng người dùng

Tài liệu liên quan