hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Which of the following statements is true regarding a Foreign Key in a relational database?
    Question

    Which of the following statements is true regarding a Foreign Key in a relational database?

    A.

    A foreign key uniquely identifies every record in a table.

    B.

    A foreign key is primarily used to sort records in ascending order.

    C.

    A foreign key establishes a relationship between two tables using referenced values.

    D.

    A foreign key must always contain only unique values.

    E.

    A foreign key cannot contain duplicate or NULL values.

    Correct option is C

    A Foreign Key is a field or set of fields in one table that refers to the Primary Key of another table. Its main purpose is to establish and maintain a relationship between two tables and ensure referential integrity in a relational database.

    Foreign keys help prevent invalid data by ensuring that values in the foreign key column correspond to existing values in the referenced table.

    Therefore, option (c) is correct.

    Important Key Points:

    1. A Foreign Key creates a relationship between two database tables.
    2. It references the Primary Key of another table.
    3. Foreign keys help maintain referential integrity.
    4. A foreign key column may contain duplicate and sometimes NULL values unless restricted.

    Knowledge Booster:

    1. (a) A foreign key uniquely identifies every record in a table: Incorrect because uniquely identifying records is the function of a Primary Key, not a foreign key.
    2. (b) A foreign key is primarily used to sort records in ascending order: Incorrect because sorting is performed using queries such as ORDER BY, not by foreign keys.
    3. (d) A foreign key must always contain only unique values: Incorrect because foreign key values can repeat in multiple rows to represent many-to-one relationships.
    4. (e) A foreign key cannot contain duplicate or NULL values: Incorrect because foreign keys can contain duplicate values and may also contain NULL values unless a constraint prevents them.

    Free Tests

    Free
    Must Attempt

    SBI Clerk Prelims Full Mock Test-01

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

    SBI Clerk Prelims 2026 : Reasoning Section Test 01

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

    SBI Clerk Prelims 2026 : Quantitative Aptitude Section Test 01

    languageIcon English
    • pdpQsnIcon35 Questions
    • pdpsheetsIcon35 Marks
    • timerIcon20 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
    446k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow