Advertisements
Advertisements
Question
An organisation wants to create a database EMPDEPENDENT to maintain the following details about its employees and their dependent.
EMPLOYEE(AadharNumber, Name, Address, Department, EmployeeID)
DEPENDENT(EmployeeID, DependentName, Relationship)
- Name the attributes of EMPLOYEE, which can be used as candidate keys.
- The company wants to retrieve details of the dependent of a particular employee. Name the tables and the key which are required to retrieve this detail.
- What is the degree of EMPLOYEE and DEPENDENT relation?
Short/Brief Note
Advertisements
Solution
- AadharNumber, EmployeeId
- Employee and Dependent tables linked via key EmployeeId
- Degree of Employee: 5,
Degree of Dependent: 3
shaalaa.com
Keys in a Relational Database
Is there an error in this question or solution?
