Sie sind auf Seite 1von 3

Question 1 / Post Office System: Data Model

S_no Parts Location


Supplies_ stationary 1,5

SUPPLIER

I know that the notation for Entity Types involves a black triangle on the bottom right of the entity type, however I was unable to do this with the software I used. Please excuse me.

Note: Some of the diagrams over the next pages, are accompanied by a set of notes containing assumptions and explanations. POST_OFFICE
Employs Stocks 1,N 0,N 5,1 orders

EMPLOYEE Office_no
Stocked_by

STATIONARY

Works_for

Handles

1,1

1,N

SSN F_name L_name Salary


Managed_by Sorts 1,N 1,1

Stationary_no Name Qty

MANAGER

Manages

Manager_ID Start_Date Salary


1,N

1,1

VAN Account
Held_by

Sorted_by

N,1

LETTER CUSTOMER
delivers Recieves 1,N Sends 1,N

Delivered_to

Handled_by

N,1

N,1 Sent_by

Name Address

1,1

Customer_name Item_posted_desc Amount_charged

L_no Sender_name Date_of_postage Recipient_name Recepient_address Employee_name

N,1

Holds

CASUAL CUSTOMER

REGULAR_CUSTOMER CREDIT_LIMITED
1,1

CREDIT_UNLIMITED Registration_no Credit_rating Credit_limit Balance

Registered Letter

Express Letter

Registration_no Insurance Value

Delivery Time

Question 2b / A meta model of time

RULE

FACT_TYPE
Related_to Related_to

TIME

Can_be 0,1 Can_be

0,N Could_be 0,N Could_be

Effective Time

Transaction Time

Decision Time
Could_be

0,N

Absolute Time
Could_be

Relative Time
0,1

Periodic Time

Fixed Periodic Time


1,1 Can_be

1,1 Can_be 0,1 Can_be

1,1

Can_be

Can_be Consists_of 1,1 Consists_of 1,1

Could_consist_of 1,1 1,1

1,N Is_part_of

Start Time
N,1 Has_a 1,N 1,N Makes_up 1,N Related_to 1,N Consists_of 1,1 Is_part_of

Chronon

Unit
1,N 1,N Makes_up

Interval
Can_be 1,1

Consists_of

1,N Consists_of

Consists_of 1,1

1,N

N,1 Make_up

Is_part_of 1,N

End Time

1,N Has_a 1,1

Is_part_of

Range

Has_a

1,1

Consists_of 1,N

is

Related_to

1,N

Time Element

1,N

Value

Question 2c / Data Model: description about a guy called John


PERSON Name Street City Post_code Contact_number Date_of_birth
T 1,N

I know that the notation for Entity Types involves a black triangle on the bottom right of the entity type, however I was unable to do this with the software I used. Please excuse me.

T=Time I represented TIME as Dr. Ilias did in the lectures RECREATION

ASSUMPTIONS

Employees partake in recreational activity, since a MANAGER is a type of employee, by implication, a MANAGER can also partake in recreational activities.
Partakes_in 1,N

DEPARTMENT EMPLOYEE
Works_for T employs 1,N

CUSTOMER Salary
1,1

Credit_rating

D_number D_name D_location

Supervised_by

1,1

T2

SECRATARY
Supervises 1,N

MANAGER Furniture_fund Manager_id Start_date

Hired_by 1,1

Hires

1,1 has 1,1 Orders T 1,N

COMPANY

1,1 Ordered_by

Name Reg_no

FURNITURE

Das könnte Ihnen auch gefallen