SQL for Data Analysis Questions

Writing SQL to answer analytical and business questions. Covers filtering, joins, grouping and aggregation, subqueries, CTEs, and translating an ambiguous request into a correct query. Includes spreadsheet-to-SQL fluency for everyday analyst workflows.

MediumTechnical
66 practiced

You have two tables: orders and customer attributes. Some customers appear multiple times because their segment changes over time. How would you join the tables in Excel so each order gets the correct customer segment as of the order date? Describe the formula approach or table design you would use.

MediumTechnical
76 practiced

For business reporting, how do SUMIFS, COUNTIFS, and AVERAGEIFS compare with PivotTables? When would you prefer conditional aggregate formulas instead of a PivotTable, and when would you avoid them?

MediumTechnical
63 practiced

If you had a transaction-level sheet and needed a monthly summary by region, product, and channel with trend lines, how would you build the PivotTable and what options would you use to make it usable for non-technical stakeholders?

MediumTechnical
64 practiced

You receive a CSV export with inconsistent date formats, extra spaces, merged cells in headers, and product names that differ only by spelling or casing. How would you clean and structure it in Excel so it can be analyzed reliably without losing the original raw data?

HardTechnical
73 practiced

How would you build a lightweight Excel dashboard that refreshes from a raw data tab, shows KPI tiles, trend charts, and drill-down filters, and stays fast enough for daily use on a large workbook? Describe the structure, formulas, and performance choices you would make.

Unlock Full Question Bank

Get access to all 10 SQL for Data Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.