Design a Simple ERP System Data Model
Describe the core relational tables and foreign key relationships needed to model a basic Enterprise Resource Planning (ERP) system (e.g., inventory, orders, customers).
Why Interviewers Ask This
Interviewers at Salesforce ask this to evaluate your ability to translate complex business logic into normalized, scalable relational schemas. They specifically assess if you can identify core entities like Customers, Orders, and Inventory, and define precise one-to-many relationships. This tests your understanding of data integrity constraints and how a unified system manages interconnected workflows critical to CRM and ERP environments.
How to Answer This Question
Key Points to Cover
- Explicitly defining the junction table (OrderItems) to resolve many-to-many relationships
- Demonstrating normalization principles to prevent data redundancy and update anomalies
- Connecting business logic (sales process) directly to technical schema choices
- Considering performance implications like indexing for high-volume enterprise data
- Including audit fields to support traceability and compliance requirements
Sample Answer
Common Mistakes to Avoid
- Creating denormalized tables that duplicate product prices inside the Order table, causing data inconsistency
- Failing to define a separate junction table for items, leading to ambiguous relationships between orders and products
- Ignoring referential integrity constraints, which could allow orphaned records in a production environment
- Overlooking non-functional requirements like indexing or audit trails needed for large-scale systems
Practice This Question with AI
Answer this question orally or via text and get instant AI-powered feedback on your response quality, structure, and delivery.