What is a primary key?

A primary key is a column or a set of columns in a database table that uniquely identifies each record in that table. It ensures that no…