Design a fact table at the order-line-item grain
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
Design a fact table at the order-line-item grain. Each row represents one product in one order. Include the foreign keys to dimension tables and the measurable facts (quantity, unit_price, line_total).
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your data modeling solution with real code execution
- Get instant feedback and a hire/no-hire decision