Solution2(database)

9
1 Ch. 2: Problems and Exercises 15a Employee_ID Start_Date Billing_Rate Project_ ID EMPLOYEE PROJECT Is_assigned Project_Name Birthdate Address Name

description

 

Transcript of Solution2(database)

Page 1: Solution2(database)

1

Ch. 2: Problems and Exercises 15a

Employee_ID

Start_Date

Billing_Rate Project_ ID

EMPLOYEE PROJECTIs_assigned

Project_NameBirthdateAddressName

Page 2: Solution2(database)

2

Ch. 2: Problems and Exercises 15b

CHEMIST

Employee_ID

Name Phone No

PROJECT

Project_ID

Start Date

EQUIPMENT

CostSerial No

CHEMISTASSIGNMENT

Assign Date

Page 3: Solution2(database)

3

Course_ID

COURSE

UnitsCourse_Name

Has_scheduled

SECTION

YearSemester

Semester_ID

Section_Number

Ch. 3: Problems and Exercises 15c

Page 4: Solution2(database)

4

Physician_ID

Treatment_Detail

SpecialtyPatient_

Name

Patient_ID

PHYSICIAN PATIENT

Admits

Treats

Date Time Results

Ch. 2: Problems and Exercises 15d

Page 5: Solution2(database)

5

Ch. 2: Project Exercise 2

Is_assigned

TREATMENT

Treatment_ID

Treatment_NameTreatment_No

CENTER

Center_ID Center__Name

Assigned

Hours_per_week Emp_NameEmp_No

EMPLOYEE

Nurse_in_chargeHas

BED

Bed_No

Room_No

PATIENT

Patient_ NamePatient_No

Consume

Date Quantity

Total _Cost

Refers PHYSICIAN

Physician_IDPhysician_Name

ITEM Unit_Cost

DescriptionItem_No

Performs

Treatment_TimeTreatment_Date

ResultsTime

Center_ID

Page 6: Solution2(database)

6

Ch. 2: Project Exercise 3

• No. The entity type ITEM has a Unit_Cost attribute, but has no provision to represent a unit cost per day which would be required for items such as in-room TVs.

Page 7: Solution2(database)

7

Ch. 2: Project Exercise 4

Bed_No

Center_ID Room_No Bed_Num

Page 8: Solution2(database)

8

Ch. 2: Project Exercise 5

ITEM Item_NoPATIENT

Patient_No

CENTER ROOMContains

Billed_to

Contains

Room_No

Total_cost

Center_ID Center_Name

Patient_Name Description

Unit_cost

Date

Time

Quantity

Page 9: Solution2(database)

9

Ch. 2: Project Exercise 6• Yes. Any combination of patient and treatment

has multiple physicians who perform that treatment.

Ch. 3: Project Exercise 7• Yes. The diagram records the date, time, and

results for each treatment occurrence performed by a physician on behalf of a patient.