Composite Keys

Difficulty: Beginner

Question

What is a Composite Primary Key?

Answer

A primary key that consists of two or more columns to uniquely identify a row (e.g., `order_id` and `product_id` in an `order_items` table).

Concepts covered

Primary Key, Composite Key