Data & Analytics: interview questions and learning guide
SQL, dashboards, statistics and business reporting
Practise Data & Analytics on Padimachi
What you will learn
SQL for analysis
Data sits in tables like rows in many notebooks. SQL is how you ask the notebooks questions.
SQL reads and summarises data stored in tables. SELECT picks columns, WHERE filters rows, JOIN links tables on a shared key, and GROUP BY summarises rows into totals and counts. HAVING filters those groups. Window functions rank or compare rows without collapsing them. Clean, readable queries and checking row counts after each join prevent wrong numbers.
Interview tip: Say how you check your answer: row counts, a small sample and a second method.
Dashboards and data storytelling
A chart is a sentence in pictures. If it needs a paragraph to explain, redraw it.
A dashboard shows a few key measures so people can decide quickly. Start with the question and the audience, then pick the simplest chart: lines for time, bars for comparing, tables for exact values. Use clear titles, consistent colours and a small number of KPIs. Always label units and the date range. Check numbers against the source before sharing, and note where the data comes from.
Interview tip: Show that you start from the decision the person must make, not from the chart type.
Statistics and insight basics
Averages can lie. Always ask how the numbers are spread and who is missing.
Statistics helps you describe data and decide how much to trust it. Mean and median describe the middle, and the median is safer when a few large values exist. Spread shows how varied the data is. Correlation shows two things move together but does not prove one causes the other. A fair test compares groups that differ in only one thing, and sample size matters. Report ranges and caveats, not just one number.
Interview tip: Never say a number proves something unless you explain the test and the sample.
Excel for analysis
Most business data still lives in Excel. The person who masters it becomes the team's quiet hero.
Excel turns a list of rows into answers. Pivot tables summarise thousands of rows in seconds. XLOOKUP or INDEX with MATCH pulls a value from another table by a key. SUMIFS and COUNTIFS add up rows that meet conditions. Power Query cleans and combines files without manual copy and paste. Keep raw data on one sheet, work on a copy, avoid merged cells and never type numbers into formulas that should read a cell.
Interview tip: Show that you can explain your formulas and check totals against the source.
Data cleaning and preparation
Analysts spend most of their time cleaning data. Good cleaning is invisible, but bad cleaning ruins every chart.
Raw data is often messy: duplicates, blanks, spelling variants, wrong formats and impossible values. Cleaning means finding these problems, fixing them with a stated rule and keeping a record of what changed. Check each column for type, range and unique values. Decide how to treat missing values: leave, fill with a sensible value or remove, and say which. Never overwrite the original file. Re-check totals after cleaning so nothing is lost by mistake.
Interview tip: Say how you document cleaning rules so another person can repeat them.
Python and pandas for analysis
When Excel runs out of rows or patience, pandas picks up the work in a few lines.
Pandas is a Python library for tables. A DataFrame holds rows and columns. You load a file, inspect it with head and info, filter rows, create new columns, group and summarise, and join tables with merge. Jupyter notebooks mix code, results and notes so others can follow your steps. Matplotlib draws charts. Write small steps, print shapes after merges and keep code in a script so the analysis can be rerun on new data.
Interview tip: Explain one analysis you did end to end, including how you checked the result.
Business metrics and KPIs
A number only matters if it changes what someone does on Monday morning.
A metric is a measured number, and a KPI is a metric tied to a goal. Good KPIs are clear, comparable over time and owned by someone. Know the definition, the formula, the time window and the data source for each. Rates such as conversion or churn need both the top and the bottom number. Compare like with like, for example week to week or cohort to cohort. Beware of vanity numbers such as page views that grow without any business result.
Interview tip: Always state the definition of a metric before you share the value.
Data warehouses and ETL
A warehouse is a library for data: sorted, labelled and ready for questions.
A data warehouse stores cleaned data from many systems so reports run fast and agree with each other. ETL means extract from sources, transform into a standard shape and load into the warehouse. ELT loads first and transforms inside the warehouse. A star schema puts measurable events in a fact table, such as sales, and descriptions in dimension tables, such as customer, product and date. Pipelines should be scheduled, monitored and able to rerun without creating duplicates.
Interview tip: Know one example of a fact table and its dimensions for a business you know.
Interview questions and sample answers
WHERE filters rows before grouping. HAVING filters the groups after aggregation, for example totals above a limit.
First check the data and its source for errors, then split by time, region and product to find where the drop sits, and test likely causes with evidence before reporting.
Compare row counts and totals with the source, check a small sample by hand and cross check with a second method or an earlier report.
When a few extreme values pull the mean away from what is typical, such as salaries or order values, the median gives a more honest middle.
Group by the columns that should be unique and keep groups with COUNT greater than one, or use ROW_NUMBER over a partition.
To summarise data by categories quickly: choose rows, columns and a value with sum or count.
Mean is the average, median the middle value and mode the most frequent. Median resists outliers.
Find out why they are missing, then remove, fill with a sensible value or flag them, and record the choice.
A clear question, a few key numbers, simple charts, consistent colours, filters that help and a note on data freshness.
A primary key uniquely identifies a row. A foreign key points to a primary key in another table to link them.
Correlation measures how two variables move together. It does not prove one causes the other; other factors or chance may explain it.
First find how many are missing and why. Then choose a stated rule: leave, fill with a sensible value such as a median or remove rows if few. Record the choice and check how it changes the result.
A pivot table groups and totals rows by fields you choose, so you can answer questions such as sales by region and month without writing formulas.
A metric is any measured number. A KPI is a metric tied to a business goal, with an owner and a target.
ETL means extract data from sources, transform it into a standard shape and load it into a warehouse or report store.
Use charts and range checks to spot them, then check whether each is an error or a real rare event. Remove or cap only with a clear reason and note it.
A join combines rows from two tables on a shared key. A wrong or non-unique key can duplicate rows, so check row counts before and after.
Senior and lead interview questions
Link metrics to goals, define each precisely, agree owners and review for gaming and clarity.
Set standards, validate at the source, monitor with checks, assign owners and fix root causes.
Start with the decision, show the evidence simply, state limits and recommend an action.
Define the goal and metric, randomise groups, size the sample, run long enough and check significance.
Rank by business impact and effort, share a roadmap and say no with reasons.
Set standards, review work, teach storytelling, rotate projects and track impact.
Compare definitions and filters, trace to the source, document the difference and agree on one version.
Padimachi is free. Content is general learning material, not a promise of a job. Privacy