Which of the following are Primary Key constraints?
Which of the following are Primary Key constraints?
Solution
✅ Correct Option: 3
A primary key identifies each row of a table exactly once. So its values must be unique, so that no two rows share the same key, and not null, so that every row has a key value. Only Option 3 states both conditions.
Options 1, 2 and 4: a primary key need not be numeric. It can be text, such as a roll number like "A101" or an email ID. Option 2 also fails because duplicates are not allowed in a primary key.
A table can have only one primary key, but it can be made of more than one column (a composite key).
Related questions:
2025: 13 May Shift 2
2025: 14 May Shift 1
