Primary Key With Example.

Q9. Explain the primary key with the help of an example.
Ans. Primary key refers to a key that helps us to uniquely identify a record in a table. The primary key is used to avoid duplicate data. In other words, a column which a primary key will not contain duplicates information in any of its records. For example, the Employee_Details table, we can set the primary key in the Emp_Code column, which contains the employee code. In this case, duplicate values are not possible in the column.