Database Management System · Class 12 · CBSE · Science Computer Science

A relation named STUDENT has attributes RollNo, Name, Class and Email. RollNo is unique and never contains a NULL value, while the other attributes m…

Practice question from Database Management System (Class 12 · CBSE · Science Computer Science), with the correct answer and a step-by-step solution.

easy · MCQ · Q-9A4967

A relation named STUDENT has attributes RollNo, Name, Class and Email. RollNo is unique and never contains a NULL value, while the other attributes may contain duplicate values. Which attribute is most suitable as the primary key?

  1. A.Name
  2. B.Class
  3. C.RollNoCorrect answer
  4. D.Email

Solution

A primary key uniquely identifies every record and cannot contain NULL values. RollNo satisfies both conditions.

More from Database Management System

All of Database Management System

Practise more Computer Science

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed