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.
A manager asks you to explain why sales dropped last week, and the only input you have is a raw Excel export from the CRM. How would you structure the investigation in Excel from the first pass to the final answer, and what analyses would you prioritize?
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?
Tell me about a time you improved a spreadsheet-based reporting process that was too manual, error-prone, or hard for others to use. What was the problem, what changes did you make, and how did you prove the new process was better?
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?
In VBA or Office Scripts, how would you automate a repetitive Excel reporting task that imports a CSV, cleans the headers, refreshes summary sheets, and exports a PDF for distribution? What would you automate first, and how would you make the script robust to missing or malformed data?
Unlock Full Question Bank
Get access to all 10 SQL for Data Analysis interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.