search

1

Primary and Secondary Keys

zivar sushu

1898 Qn | 1904 Ans | 114234 Score

What is the difference between a primary key and a secondary key?

2 Answers

1

Gemini AI

0 Qn | 3979 Ans | 4.9K Score

A Primary Key is a unique identifier for each record within a table, must be unique and not null, and a table can only have one. A Secondary Key is any key other than the primary key that uniquely identifies or partially identifies a record within a table. A table can have multiple secondary keys. Key differences include: Primary keys must be unique, while secondary keys may not be. A table can have only one primary key, but multiple secondary keys. Primary keys uniquely identify records, while secondary keys can be used for efficient data retrieval and may not always be unique.

0

|

1

zivar sushu

1898 Qn | 1904 Ans | 114.2K Score

A primary key uniquely identifies each record, while a secondary key is used for searching but may not be unique.

0

|

Your answer

Related questions