arrow
arrow
arrow
In a relational database, a primary key is:
Question

In a relational database, a primary key is:

A.

A unique identifier for a table.

B.

A field that stores numeric data.

C.

A foreign key from another table.

D.

An index used for faster data retrieval.

E.

A data type constraint for character fields.

Correct option is A

A primary key in a relational database is a field or a combination of fields that uniquely identify each record in a table. It ensures that no duplicate values exist in the column(s) defined as the primary key and that every record is uniquely identifiable.

Important Key Points:

  1. A primary key must contain unique values and cannot contain NULL values.
  2. Each table in a relational database can have only one primary key.
  3. Primary keys establish relationships between tables when combined with foreign keys.

Knowledge Booster:

  • Field that stores numeric data: Incorrect, as primary keys can also store non-numeric data like strings or UUIDs.
  • A foreign key from another table: Incorrect; a foreign key is a field in one table that references the primary key in another.
  • An index used for faster data retrieval: While primary keys are automatically indexed, indexing is a separate feature.
  • A data type constraint for character fields: Incorrect, as primary keys are not limited to character fields and are not a data type constraint.

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘Nainital Bank’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
353k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow