Define the term primary key and alternate key with respect to database.

Question
in progress 0
Studies Aman 5 years 1 Answer 168 views Bronze 0

Answer ( 1 )

  1. An alternate key is a key associated with one or more columns whose values uniquely identify every row in the table, but which is not the primary key. For example, where the primary key for a table may be the employee id, the alternate key might combine the first, middle, and last names of the employee.

    A primary key is a column — or a group of columns — in a table that uniquely identifies the rows in that table. For example, in the table below, CustomerNo, which displays the ID number assigned to different customers, is the primary key. CUSTOMERS.

Leave an answer

Browse

Captcha Click on image to update the captcha .

About AmanBronze