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
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?

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
69 practiced

You are asked to trust a workbook created by someone else, but it contains missing values, negative amounts that may be refunds or errors, and dates outside the reporting period. What checks would you run in Excel to determine whether the dataset is fit for analysis?

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?

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.