KnowledgeBoat Logo
|

Informatics Practices

An organization wants to create a table EMPLOYEE, DEPENDENT to maintain the following details about its employees and their dependents.

EMPLOYEE (EmployeeID, AadhaarNumber, Name, Address, Department)

DEPENDENT (EmployeeId, DependentName, Relationship).

There are 10 records each in both tables.

(i) Name the attributes of the Employee, which can be used as candidate keys.

(ii) What is the degree of the Employee Table?

(iii) What is the Cardinality of a Dependent Table?

(iv) Which is the Primary key of Dependent Table?

Relational Database

1 Like

Answer

(i) In the EMPLOYEE table, the attributes AadhaarNumber and EmployeeID can be used as candidate keys. This means that either AadhaarNumber or EmployeeID can uniquely identify each record in the EMPLOYEE table.

(ii) In the EMPLOYEE relation, there are five attributes, resulting in a degree of 5.

(iii) The cardinality of a table is the number of rows (records) it contains. The DEPENDENT table has 10 records. Hence, the cardinality of the DEPENDENT table is 10.

(iv) For the DEPENDENT table, the combination of EmployeeID and DependentName can be used as the primary key because each dependent is uniquely associated with an employee.

Answered By

2 Likes


Related Questions