Computer Science

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

  1. Name
  2. Street
  3. Roll No
  4. Subject

SQL Queries

3 Likes

Answer

Roll No

Reason — A primary key is a unique identifier for each record in a table, and it must be unique and not null. As the "Roll No" is unique for each student and can uniquely identify each record in the table, it can be considered as a choice for primary key.

Answered By

2 Likes


Related Questions