In a relational database, what is a primary key?

2025

In a relational database, what is a primary key?

  1. A.

    A key used for opening encrypted data

  2. B.

    A unique identifier for a record in a table

  3. C.

    A foreign key from another table

  4. D.

    An index for sorting data

Attempted by 2246 students.

Show answer & explanation

Correct answer: B

A primary key uniquely identifies each record in a table. Step 2: It ensures no duplicate entries exist. Step 3: This makes it a valid identifier for database operations.

Explore the full course: Bpsc