103k views
4 votes
A primary key is composed of exactly two fields. True False

2 Answers

5 votes

Answer:

The statement "A primary key is composed of exactly two fields" is False. A primary key can be composed of one or more fields, and when it is composed of more than one field, it is called a composite key or combination key. Therefore, the number of fields in a primary key is not limited to exactly two.

Step-by-step explanation:

User Ryan Olson
by
8.1k points
0 votes

Final answer:

The claim that a primary key must be composed of exactly two fields is false; a primary key can be a single field or a composite key of multiple fields.

Step-by-step explanation:

The statement that a primary key is composed of exactly two fields is false. A primary key in a database is a unique identifier for each record in a table and can consist of one or more fields, depending on the table structure and the data it holds. When a primary key consists of two or more fields, it is known as a composite key.

For example, in a school database, a student's record could have a primary key made up of just one field, such as 'StudentID', or it could have a composite key made up of multiple fields like 'SchoolID' and 'StudentID' if students are only unique within each school.

User Shane Arney
by
7.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.