Design a one-to-one relationship: each user has exactly one profile
A medium Data Modeling interview practice problem on DataDriven. Write and execute real data modeling code with instant grading.
- Domain
- Data Modeling
- Difficulty
- medium
Problem
Design a one-to-one relationship: each user has exactly one profile. Create users and user_profiles tables where each profile belongs to one user.
Practice This Problem
Solve this Data Modeling problem with real code execution. DataDriven runs your solution and grades it automatically.