InterviewStack.io LogoInterviewStack.io

Database Fundamentals and SQL Literacy Questions

Core relational database concepts and basic SQL literacy. Covers database objects such as tables, rows, and columns, primary keys and foreign keys, relationships and referential integrity, simple schema design concepts and normalization, indexing basics and their effect on performance, transactions and basic consistency concepts, and reading and interpreting simple SQL queries including SELECT JOIN GROUP BY and COUNT. This topic assesses whether a candidate understands how data is stored and related and can translate simple business questions to database queries.

MediumTechnical
68 practiced
Your nightly BI queries are slow because analytics queries join many normalized tables. Describe three denormalization strategies you could apply to speed up dashboard queries, and list trade-offs for each (storage cost, data freshness, update complexity).
MediumTechnical
66 practiced
A transactions table has grown to 2 billion rows. Explain partitioning strategies you could use (range, list, hash) and recommend one for monthly financial reporting where most queries filter by transaction_date. Include pros/cons and how partition pruning helps query performance.
HardTechnical
48 practiced
You're about to add a non-null, non-empty column 'customer_email' to a production customers table used by many dashboards. Describe a safe schema migration plan that avoids breaking running reports and minimizes downtime. Include steps for backfilling, adding the column, switching reads, and rolling back.
EasyTechnical
58 practiced
Describe 1NF, 2NF, and 3NF in simple terms and why normalization matters for an operational OLTP system. Then explain one reason BI teams sometimes denormalize schemas for analytics workloads.
EasyTechnical
48 practiced
You need a report that lists every order and the customer name. Two tables:
customers(customer_id PK, name)orders(order_id PK, customer_id FK, total)
Write an SQL query that returns all orders and the customer name, but also includes orders with NULL customer_id. Which JOIN type do you use and why?

Unlock Full Question Bank

Get access to hundreds of Database Fundamentals and SQL Literacy interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.