What is the difference between primary key and candidate key?
To identify each row of a table, we will use a primary key. For a table, there exists only one primary key. A candidate key is a column or a set of columns, which can be used to uniquely identify any record in the database without having to reference any other data. In MySQL, as well as in database management systems in general, the primary key and candidate key are both key concepts (pun intended!) in database design, but they…