What is the purpose of using a primary key in a database table?

  • To sort data in ascending order
  • To uniquely identify each row in the table
  • To group related data records
  • To define data types for columns
A primary key in a database table is used to uniquely identify each row in the table. It ensures that no two rows have the same values for the primary key, making it a crucial concept for data integrity and efficient data retrieval.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *