The primary key is an attribute or combination of attributes that
uniquely identifies each row in a relation. For example, the primary key for the relation Student is Student ID. The candidate key is an attribute or combination of attributes that uniquely identifies a row in a relation. For example: Student ID
Name
Course
Major
The student ID will be the determinant in this relation and all other attributes are dependent on Student ID. So the student ID is candidate key and primary key in this case.