Sunteți pe pagina 1din 4

academy.oracle.

com

Database Design 8-2: Modeling


Change: Time Practice Activities
Objectives
• Distinguish between using date as an attribute and DAY as an entity in a data
model, depending on business requirements
• Solve the problem of keeping characteristics of a date by constructing a model
that uses DAY as an entity
• Identify at least three time-related constraints that can result from a time-
sensitive model
• Define and give an example of conditional non-transferability in a time-
constrained model

Vocabulary
Identify the vocabulary word for each definition below.
A constraint or data restriction that results from the time
dimension.
Refers to a relationship that may or may not be transferable,
depending on time.
Property of a relationship where an instance of A is related to an
instance of B, and the association cannot be moved to another
instance of B

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
1. Speeding Tickets

Each police officer may issue speeding tickets to motorists in an assigned area.
Originally, the attribute date was modeled as part of the SPEEDING TICKET entity.
However, the city police department wants to see if there is a relationship between
weather and the frequency of speeding tickets -- do people drive faster on nice
sunny days? Are there more tickets in hot weather or cool weather?

Modify the ERD to address this new requirement.

TRAFFIC OFFICER
# number
* first name
* last name
* precinct

issued 3

issued by

SPEEDING TICKET
# number
* location
* date
* miles/km over speed limit
* driver licence number
* vehicle registration id
* officer comments

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
answer:

2. Examine the ERD that represents classroom assignments for different exams.

a. hy is start time part of the UID of ASSIGNMENT?


b. WName at least three time-related constraints. For example: End time must be
later than start time. Indicate if the constraint represents conditional non-
transferability. ‘’

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
a. each task can be identified based on when the task starts, so the attribute
(Start Time) is important

b. -The end time must be preceded by the start time


-When the start time is run it shouldn't be canceled
-When the test is carried out make sure the time stops
at the same day when it starts

Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.

S-ar putea să vă placă și