Skip to main contentSkip to solution

Given two relations:

'Employee' with structure as ID, name, Address, Phone, Deptno

'Department' with structure as Deptno, Dname

______ is used to represent the relationship between two relations Employee and Department.

Solution

✅ Correct Option: 3

A foreign key is an attribute in one relation that refers to the primary key of another relation. Here, Deptno in Employee refers to Deptno, the primary key of Department. This links each employee to a department.


Primary key: Deptno is the primary key of Department, but a primary key only identifies rows within its own relation. It does not link two relations.

Alternate key and candidate key: these are keys that could serve as the primary key of one relation, so they do not connect relations either.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question