Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
SQL

One-to-One Relationship in SQL

Link two tables where each row pairs with at most one row in the other.

One-to-One Relationship in SQL — a practical guide to SQL one-to-one relationship with clear examples you can reuse in real projects.

SQL Tutorial Series (79/100). Prefer one article? Read the complete SQL tutorial.

Short description

Often used for optional profile extensions.

1:1 sketch

CREATE TABLE user_profiles (
  user_id INT UNSIGNED PRIMARY KEY,
  bio TEXT,
  FOREIGN KEY (user_id) REFERENCES users(id)
);

Leave a reply

Your email address will not be published. Required fields are marked *