Which of the following key is formed by atleast two attributes?
Which of the following key is formed by atleast two attributes?
Solution
✅ Correct Option: 2
A composite key is made by combining two or more attributes, so that together they identify each row uniquely, even when no single attribute can do it alone. For example, (StudentID, CourseID) in an enrolment table.
Primary Key: it can be a single attribute (like RollNo), and it is composite only when no single attribute is enough.
Alternate Key: it is a candidate key not chosen as the primary key, and it can be a single attribute.
Foreign Key: it is an attribute (or set of attributes) that refers to a key in another table, and it is usually a single column.
Related questions:
2025: 3 June Shift 2
2026: 23 May Shift 2