engineering computer science MCQ #838

What is the purpose of a foreign key in a relational database?

engineering computer science MCQ #838

  1. Question 1

    Q1. What is the purpose of a foreign key in a relational database?

    • A) To uniquely identify a row
    • B) To establish a relationship between tables
    • C) To index a column
    • D) To enforce data type

    Answer: To establish a relationship between tables

    Explanation: A foreign key links a table to another, establishing a relationship between them.