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?
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.
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?
In Excel, when would you choose XLOOKUP, INDEX/MATCH, or VLOOKUP for a business report? Walk me through how you would decide between them, including exact vs. approximate matching, left lookups, and what you would do when a key is missing or duplicated.
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.