Explain the difference between a primary key and an alternate key in indexed file processing.

  • Primary key allows duplicate values, while alternate key enforces uniqueness.
  • Primary key is the default key, and alternate key is used for backup purposes.
  • Primary key is used for sorting records in ascending order. Alternate key is the main key used for retrieval.
  • Primary key uniquely identifies records and determines the file's physical order. Alternate key provides an alternative access path and can have duplicates.
In indexed file processing, a primary key uniquely identifies records and establishes the file's physical order. An alternate key provides an alternative access path without affecting the physical order and can have duplicate values.
Add your answer
Loading...

Leave a comment

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