InterviewStack.io LogoInterviewStack.io

Database Fundamentals and Data Modeling Questions

Encompasses foundational database concepts and techniques for designing and querying data stores. Topics include relational database concepts, structured query language fundamentals for selecting and modifying data, schema design with tables and relationships, normalization principles, entity relationship modeling, indexing and basic performance considerations, transactions and data integrity, constraints and data types, and common operational tasks such as migrations, backups, and simple optimization strategies. Also discusses trade offs with nonrelational stores and when to choose different persistence models.

MediumTechnical
39 practiced
You are given a denormalized 'orders' table with columns: order_id, customer_name, customer_email, product_id, product_name, quantity, price, order_date. Explain step-by-step how to normalize this into 3NF, list the resulting tables and keys, and outline a migration strategy that minimizes downtime and preserves data integrity.
EasyTechnical
32 practiced
Write a SQL query (PostgreSQL) to select the top 3 most recent orders per customer from an orders table with schema: orders(order_id INT PK, customer_id INT, total_amount NUMERIC, created_at TIMESTAMP). Explain how you handle ties when two orders have the same created_at and state any assumptions about indexing and performance.
EasyTechnical
31 practiced
Describe the practical differences between DELETE, TRUNCATE, and DROP in SQL. Cover transactional behavior, rollback capabilities, performance implications, permission requirements, and whether triggers are fired in each case.
EasyTechnical
36 practiced
Describe the goals of normalization and explain 1NF, 2NF, and 3NF with simple examples. Also describe when denormalization might be appropriate for performance and the trade-offs involved, especially in read-heavy workloads.
EasyTechnical
30 practiced
Explain the difference between OLTP and OLAP systems. Discuss typical schema patterns (normalized OLTP vs star/snowflake OLAP schemas), query patterns, latency expectations, and how these differences influence database selection and tuning.

Unlock Full Question Bank

Get access to hundreds of Database Fundamentals and Data Modeling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.