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.
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
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.
Related questions:
2026: 31 May Shift 1
2025: 20 May Shift 1
2026: 31 May Shift 1
2026: 26 May Shift 1