Define primary key and candidate key.
Primary Key: A primary key is an attribute in Relation that uniquely identifies the rows in relation. A Primary key does not hold NULL values and duplicate values.
OR
A key which is selected by the designer to uniquely identify the entity is called as Primary key. A primary key cannot contain duplicate values and it can never contain null values inside it.
Example: In a Student table(Rollno,Name,Percentage), Rollno is the primary key
Candidate key: In a relation there may be a key or combination of keys which uniquely identify the record. Such a key is called as Candidate key.
Example: Consider a Student table (Rollno,Name,Percentage), if (Rollno) and(Name)both are unique then both are identified as candidate keys.
OR