arrow
arrow
arrow
Which of the following statements describe the properties of a foreign key?I. A foreign key ensures that the value in one table must match a value in
Question



Which of the following statements describe the properties of a foreign key?
I. A foreign key ensures that the value in one table must match a value in a primary key of another table.

II. A foreign key can uniquely identify each record in a table.

III. A foreign key is used to establish and enforce a link between the data in two tables.

IV. A foreign key must contain unique values.

Select the correct statements:

A.

I, II and III

B.

I and III

C.

II and IV

D.

I, III and IV

E.

All of the above

Correct option is B

A foreign key is a field (or a set of fields) in one table that is used to establish and enforce a link with the primary key in another table. Statement I is correct because it ensures referential integrity between two tables. Statement III is also correct because foreign keys are specifically used to create relationships between tables. However, statements II and IV are incorrect because a foreign key does not uniquely identify records (this is the role of a primary key), and it can contain duplicate values.
Important Key Points:
1. Referential Integrity: A foreign key ensures the value in one table corresponds to an existing value in the primary key of another table, maintaining data consistency.
2. Relationships: Foreign keys are critical for defining relationships in relational databases, supporting one-to-many or many-to-many associations.
3. Non-Uniqueness: Unlike a primary key, a foreign key can hold duplicate values, as it represents a reference rather than a unique identifier.
Knowledge Booster:
· Primary Key: Uniquely identifies each record in a table and does not allow null values.
· Unique Key: Similar to a primary key but can allow one null value, ensuring uniqueness within the column.
· Composite Key: A combination of two or more columns in a table to uniquely identify a record.
· Candidate Key: Any column or combination of columns that can qualify as a primary key.

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘IBPS SO IT Officer’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
354k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow