QuizAdvanced

Foreign Keys and Indexing Basics

Understanding the role of a foreign key when designing related database tables.

In a relational schema, an Orders table has a customer_id column referencing the Customers table's primary key. What is the primary purpose of defining customer_id as a foreign key?