Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider an ER schema with entity types Employee and Department, and relationship type Manages (make a drawing!) Employee has one attribute empid (which is the

Consider an ER schema with entity types Employee and Department, and relationship type Manages (make a drawing!) Employee has one attribute empid (which is the key). Department has one attribute depid (which is the key). Manages has two edges to Employee, one with role boss, one with role sub (for "subordinate"). Manages also has an edge to Department. The edge with role boss is functional. Finally, Manages also has an attribute: date.

Converting this schema to a relational schema with keys and inclusion dependencies, indicate which keys and which inclusion dependencies would be generated. Below, 'inc.' stands for the inclusion symbol.

1.

Employee[empid] inc. Department[depid]

2.

key {sub, depid}

3.

key {sub, boss, depid}

4.

Manages[depid] inc. Department[depid]

5.

key {date}

6.

Employee[empid] inc. Manages[boss]

7.

key {boss}

8.

Manages[boss] inc. Employee[empid]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago