A primary key is a designated candidate key that is primarily used to identify records.
Consider a table Employee with the following attributes
EmployeeID: Unique ID assigned by the companySSN: Social Security NumberName: Name of the employeeDepartment: The department the employee works atSome examples of it's candidate keys are the following sets:
{EmployeeID}: Is unique for every Employee{SSN}: Like the ID is unique for every `EmployeeGiven this list of candidate keys we can choose the primary key to be either EmployeeID or SSN. Typically we would choose EmployeeID to be our primary key as we would probably be generating it whereas SSN would be entered by the user.