Question:

The table below is an attribute table about employee records. Which attribute can be used as a primary key?

EmployeeNameDesignationDepartment
(Emp_ID)(Emp_Name)(Emp_Desig)(Emp_Dept)
100260PrashantSoftware DeveloperInformation Technology
100265DineshJunior EngineerEmbedded System
100252SomyaHR ManagerManagement
100271DineshJunior EngineerInformation Technology

 

Show Hint

When identifying a primary key, look for an attribute that is {never repeated} and can {uniquely identify each row}. IDs are often used as primary keys for this reason.
Updated On: Apr 17, 2025
  • \( {Emp\_Name} \)
  • \( {Emp\_ID} \)
  • \( {Emp\_Dept} \)
  • \( {Emp\_Desig} \)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

A primary key is an attribute (or a set of attributes) that uniquely identifies each record in a database table. From the table:

Emp_Name is not unique (e.g., "Dinesh" appears twice),
Emp_Desig and Emp_Dept are also repeated for different employees,
Emp_ID, however, is unique for each row, making it the only suitable attribute to be a primary key.

Hence, the correct answer is Emp_ID.
Was this answer helpful?
0
0

Top Questions on Database Management Systems

View More Questions

Questions Asked in GATE GE exam

View More Questions