Superkey - A superkey is defined in the relational model as a set of attributes of a relation variable (relvar) for which it holds that in all relations assigned to that variable there are no two distinct tuples (rows) that have the same values for the attributes in this set.
please read more here , here , here .
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
Given table: EMPLOYEES{employee_id, firstname, surname, sal}
Possible superkeys are:
{employee_id}
{employee_id, firstname}
...
(employee_id, firstname, surname, sal}
Only the the minimal superkey - {employee_id} - will be considered as a candidate key.
read more here .
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
yes, it can be if it a combination of more than one field and may be one filed is enough to uniquely identify the records.
in your case super key is not (12,harry) or (13,harry)
it is (emp_ID, firstname)
and since data in firstname column is exactly same , that is not going to help in uniquely identifying the records.
So only the emp_id is enough for the unique identification of record.
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434