KnowledgeBoat Logo

Computer Science

Which of the following attributes cannot be considered as a choice for primary key ?

  1. Id
  2. License number
  3. Dept_id
  4. Street

Relational Database

2 Likes

Answer

Street

Reason — Attributes "Id," "License number," and "Dept_id" are unique identifiers and can be suitable choices for a primary key. However, "Street" might not be unique for each tuple, as multiple tuples could have the same street value, making it unsuitable for a primary key.

Answered By

1 Like


Related Questions