1. Trang chủ
  2. » Công Nghệ Thông Tin

Database Modeling & Design Fourth Edition- P53 pdf

5 376 0
Tài liệu đã được kiểm tra trùng lặp

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 134,81 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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 c

Trang 1

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

Trang 3

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

Trang 4

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 informacondi-tion 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)

Trang 5

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

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

TỪ KHÓA LIÊN QUAN