engineering computer science MCQ #877

What is a foreign key in a relational database?

engineering computer science MCQ #877

  1. Question 1

    Q1. What is a foreign key in a relational database?

    • A) A key that uniquely identifies a record
    • B) A key that references the primary key of another table
    • C) A key that is used for indexing
    • D) A key that is used for data encryption

    Answer: A key that references the primary key of another table

    Explanation: A foreign key references the primary key of another table, establishing a relationship between the two tables.