Establishing Relationships Between Tables in SQL
customer_id.
customer_idcolumn in the Orders table references the primary key in the Customers table.
| CustomerName | OrderDate |
|---|---|
| Raja | 2025-01-01 |
| Raja | 2025-01-02 |
customer_id in orders that doesn’t exist in customers.