DataDriven
LearnPracticeInterviewDiscussDailyJobs

An orders table references customers through a customer_id foreign key

A medium Data Modeling mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
Data Modeling
Difficulty
medium

Interview Prompt

An orders table references customers through a customer_id foreign key. Every order must belong to exactly one customer. An employees table references managers through a manager_id foreign key, but the CEO has no manager. Design both tables with the correct nullability on each foreign key.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your data modeling solution with real code execution
  4. Get instant feedback and a hire/no-hire decision

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • Data Modeling Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge