A primary key column in a relational table must be:
A
Unique and never NULL
Correct answer
B
Numeric and auto-incremented
C
Unique but allowed to be NULL
D
Referenced by another table
Correct answer
A. Unique and never NULL
18 views
⚔️
Challenge a friend on Database Management Systems
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
A primary key identifies each row, so it must be unique and NOT NULL. It does not have to be numeric or auto-incremented, and it need not be referenced by a foreign key.
Reference
Asked in: GATE CS, NTS, PPSC, FPSC
Doubts & discussionNot sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ Which SQL clause filters groups after aggregation has been applied? Next MCQ › In an ER model, a weak entity is one that: