Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MYSQL Problem The relation Employee(EId, DepartmentId, ProjectId, Salary) stores employee information. For example, ('E1', 'D2', 'P3', '90000') indicates that employee with Id 'E1' of department

MYSQL Problem

The relation Employee(EId, DepartmentId, ProjectId, Salary) stores employee information. For example, ('E1', 'D2', 'P3', '90000') indicates that employee with Id 'E1' of department 'D2' with a salary of $90,000 is working on the project 'P3'. An employee belongs to one and only one department but can work on multiple projects, or no project at all. For example, ('E1', 'D2', 'P25', '90000') can also be in the relation. However, an employee always has an unique rank.

(a) Can EId have a null value?

(b) Can DepartmentId have a null value?

(c) Can ProjectId have a null value?

(d) Can Salary have a null value?

(e) Show the candidate keys.

2) It is known that R(A,B,C,D,E) have two candidate keys AB and CDE. How many superkeys are there and what are them?

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

Step: 3

blur-text-image

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

Students also viewed these Databases questions