A company wants to create a relation 'Department' to maintain the following details about the employees in the company.
Department (ENO, ENAME, AADHARCARD, PHONENUMBER, PANCARD, ADDRESS)
Name the attributes which can be used as candidate keys.
A company wants to create a relation 'Department' to maintain the following details about the employees in the company.
Department (ENO, ENAME, AADHARCARD, PHONENUMBER, PANCARD, ADDRESS)
Name the attributes which can be used as candidate keys.
Solution
ENO (employee number), AADHARCARD and PANCARD each identify one employee uniquely, so each can be a candidate key. A candidate key is a minimal attribute set whose value is different for every tuple.
Option 1: ADDRESS is not unique, since employees living together share an address.
Option 2: PHONENUMBER can be shared (a family or office number), so it cannot guarantee uniqueness.
Option 4: ENAME is not unique, since two employees can have the same name.
Related questions:
2026: 31 May Shift 1
2026: 23 May Shift 2
2025: 3 June Shift 2
2025: 20 May Shift 1