Data Analyst Skills Assessment for Hiring: SQL, Data Quality and Decision-Making
A data analyst may know how to build a dashboard but still struggle to determine whether the underlying numbers are trustworthy. Another applicant may write elegant SQL while misunderstanding what the business metric actually measures. Hiring managers need evidence that candidates can move from a question to reliable data, an appropriate calculation and a decision-ready explanation.
A data analyst may know how to build a dashboard but still struggle to determine whether the underlying numbers are trustworthy. Another applicant may write elegant SQL while misunderstanding what the business metric actually measures. Hiring managers need evidence that candidates can move from a question to reliable data, an appropriate calculation and a decision-ready explanation.
A useful data analyst skills assessment therefore measures more than software familiarity. It should reveal how a candidate defines a metric, checks data quality, chooses a query, interprets uncertainty and communicates limitations. These are different from the financial forecasting tasks expected of an FP&A analyst and from a general test of spreadsheet shortcuts.
This guide provides a practical assessment blueprint with original datasets, worked answers, SQL examples, scoring criteria and fairness safeguards. The examples are illustrative rather than a universally validated test. Adapt them to the role, tools and decisions that the successful employee will actually support.
Start with the decisions the analyst will support
The term data analyst can describe several jobs. A product analyst may examine activation and retention. A marketing analyst may evaluate campaigns. An operations analyst may track fulfilment delays and service quality. A reporting analyst may maintain reliable definitions and scheduled dashboards. A business intelligence analyst may spend substantial time modelling data and validating reporting pipelines.
Before designing a test, review two or three real questions the hiring team expects the new employee to answer. Identify the datasets available, the business definitions, the expected tools and the level of independence required. Separate entry requirements from skills that can be taught after hiring.
| Competency | Observable evidence | Suitable exercise |
|---|---|---|
| Metric definition | Specifies numerator, denominator and population | Conversion-rate case |
| Query logic | Selects and groups records correctly | SQL exercise |
| Data quality | Identifies duplicates, missingness and inconsistent keys | Data audit |
| Analytical interpretation | Separates observed patterns from causal claims | Experiment case |
| Reporting | Communicates uncertainty and next actions | Stakeholder memo |
| Responsible handling | Protects personal information and access boundaries | Privacy scenario |
Do not automatically require advanced machine learning for a reporting job. Conversely, a role maintaining production data models may legitimately need stronger SQL and validation skills.
A role-specific 100-point assessment blueprint
For an illustrative mid-level business data analyst vacancy, use the following allocation:
| Exercise | Main skill | Points |
|---|---|---|
| 1. Define and calculate conversion | Metric literacy | 15 |
| 2. Write a defensible SQL query | Query construction | 20 |
| 3. Audit a messy dataset | Data quality | 20 |
| 4. Interpret an A/B test | Statistical reasoning | 15 |
| 5. Investigate a dashboard discrepancy | Analytical troubleshooting | 15 |
| 6. Write a decision memo | Stakeholder communication | 15 |
| Total | 100 |
These weights are a design example, not a published industry benchmark. A role heavily dependent on SQL may need a larger query component; a stakeholder-facing analyst may need more communication evidence. Define the scoring rules before reviewing candidate work.
Exercise 1: Define a conversion metric before calculating it
Candidate brief: An online service reports the following for one week:
| Measure | Count |
|---|---|
| Unique website visitors | 8,000 |
| Visitors who started registration | 1,200 |
| Visitors who completed registration | 720 |
| Total registration page views | 2,400 |
Assume each count refers to the same seven-day cohort of unique visitors where relevant, and each visitor can be counted once in each visitor-based measure.
Task A: Calculate the visitor-to-completed-registration conversion rate.
The denominator is unique visitors, not page views:
Calculation: 720 / 8,000 × 100 = 9%.
Task B: Calculate the completion rate among visitors who started registration.
Calculation: 720 / 1,200 × 100 = 60%.
Task C: Explain why the two percentages answer different questions.
The 9% figure describes the proportion of site visitors who completed registration. The 60% figure describes completion among people who began the process. Both may be useful, but calling either one simply “the conversion rate” without defining its denominator invites confusion.
15-point rubric: correct visitor conversion (5); correct start-to-completion rate (5); clear distinction and denominator definition (5).
A strong candidate may ask whether registration can occur across weeks or devices. The assumptions simplify the exercise, but such questions demonstrate awareness that real-world cohort definitions require care.
Exercise 2: Query orders without duplicating revenue
Candidate brief: A database contains these tables:
`orders(orderid, customerid, orderdate, status, ordertotal)`
`orderitems(orderid, productid, quantity, unitprice)`
The business wants total revenue from completed orders in September 2026, grouped by customer. For this exercise, assume `orders.order_total` is the authoritative amount, one row exists per order in `orders`, the date column is a date rather than a timestamp, and `status = 'completed'` identifies qualifying orders.
Task: Write a SQL query using the `orders` table. Do not join `order_items` unless needed.
One defensible answer is:
SELECT
customer_id,
SUM(order_total) AS completed_revenue
FROM orders
WHERE status = 'completed'
AND order_date >= DATE '2026-09-01'
AND order_date < DATE '2026-10-01'
GROUP BY customer_id;The half-open date range includes all dates in September and excludes October. The query avoids a common error: joining each order to its line items and then summing `orders.order_total`, which would count the same order total once per item.
Follow-up: Explain when a join would be appropriate. A join may be needed to analyse product-level revenue or categories, but the analyst must then aggregate at the correct grain and decide whether line-item totals reconcile to the authoritative order total, including discounts, taxes and shipping.
20-point rubric: appropriate table and fields (5); correct completed-order filter (4); correct date boundary (4); grouping and aggregation (4); recognises duplicate-counting risk (3).
Do not insist on identical SQL syntax if the employer's database supports equivalent expressions. State the SQL dialect and environment in advance, and check whether candidates can run their query or are expected to write it without execution.
Exercise 3: Audit data before reporting a KPI
Candidate brief: A file contains six rows of customer support cases:
| Row | Case ID | Status | Resolution hours |
|---|---|---|---|
| 1 | C101 | Closed | 4 |
| 2 | C102 | Closed | 8 |
| 3 | C103 | Open | blank |
| 4 | C102 | Closed | 8 |
| 5 | C104 | Closed | -2 |
| 6 | C105 | Closed | 10 |
The reporting team asks for the average resolution time for closed cases. Assume a case ID should appear once, negative resolution times are invalid and an open case does not yet have a resolution duration.
Task A: Identify the issues before calculating the KPI.
The file contains a duplicate case ID (`C102`), an invalid negative duration (`C104`) and a blank duration for an open case (`C103`) that should not be treated as zero. A strong answer distinguishes an expected blank for an unresolved case from an erroneous missing value in a closed case.
Task B: Calculate the average using the valid unique closed cases, excluding the invalid negative record pending investigation.
The valid durations are 4, 8 and 10 hours. Therefore:
Calculation: (4 + 8 + 10) / 3 = 22/3 ≈ 7.33 hours.
This result describes three valid unique closed cases in the supplied sample, not necessarily all cases or the organisation's overall service performance.
Task C: State what you would do with the invalid record.
A responsible analyst flags the negative value, checks source timestamps or event logs, documents the rule and seeks correction. Silently replacing it with zero or deleting the row without an audit trail can distort reporting and conceal data-quality problems.
20-point rubric: duplicate identification (4); negative-value identification (4); correct handling of the open case (3); correct average (5); appropriate remediation and documentation (4).
This exercise is intentionally small. In a real assessment, a larger synthetic CSV can reveal whether candidates implement repeatable checks, but the scoring criteria should remain transparent.
Exercise 4: Interpret an A/B test without overstating certainty
Candidate brief: Two versions of a registration page were shown to different visitors:
| Variant | Visitors | Completed registrations |
|---|---|---|
| A | 2,000 | 200 |
| B | 2,000 | 230 |
Assume visitors were randomly assigned and each visitor was counted once. No significance test or confidence interval has been supplied.
Task A: Calculate each observed conversion rate.
Version A: `200 / 2,000 = 10%`.
Version B: `230 / 2,000 = 11.5%`.
The observed absolute difference is 1.5 percentage points. Relative to A, the observed lift is `(11.5% - 10%) / 10% = 15%`.
Task B: Can you conclude that B is definitively better?
Not from the observed percentages alone. The candidate should consider sampling uncertainty, the prespecified primary metric, test duration, assignment quality and whether other relevant outcomes deteriorated. A higher observed rate does not automatically establish a reliable causal improvement.
Task C: Recommend a next step.
A defensible response is to calculate an appropriate uncertainty interval or conduct the prespecified statistical analysis, verify experiment integrity and examine guardrail metrics before rollout. The answer should not invent a p-value.
15-point rubric: both rates (4); percentage-point and relative differences (4); appropriate uncertainty interpretation (5); sensible next action (2).
This task assesses statistical judgement, not the ability to memorise a particular significance threshold. More advanced roles may require candidates to perform and explain the analysis using an approved statistical method.
Exercise 5: Investigate conflicting dashboard numbers
Candidate brief: The finance dashboard shows 1,850 completed orders for a month, while the operations dashboard shows 1,920. Both teams claim to be reporting “completed orders.” The underlying query definitions have not yet been reviewed.
Task: List the first checks you would make and explain how you would resolve the discrepancy.
A strong response begins by confirming the reporting period, timezone, status definition, cancellation and refund treatment, date field used, refresh time and source systems. It then compares query logic, data grain and join behaviour. The analyst should isolate a small set of order IDs appearing in one dashboard but not the other and trace them to source records.
The numerical difference is `1,920 - 1,850 = 70 orders`. It would be misleading to declare one dashboard wrong solely because it has the lower count. Both may implement internally consistent but different definitions.
A good resolution documents a common metric definition, agrees on ownership, corrects the relevant transformations and adds reconciliation checks so the discrepancy is detected earlier in future.
15-point rubric: identifies meaningful definition differences (5); proposes record-level reconciliation (4); avoids unsupported assumptions (3); recommends documentation and prevention (3).
The central skill is disciplined investigation. Randomly changing a filter until two numbers match is not a reliable method.
Exercise 6: Write a decision-ready analytics memo
Candidate brief: Use the results from Exercise 4. A product manager wants to deploy Variant B immediately because its observed conversion rate is higher.
Task: Write a memo of 120–170 words with the headings Observation, What remains uncertain, and Recommendation. Include the 10% and 11.5% rates, the 1.5-percentage-point difference and a proportionate next step.
A strong memo gives the manager a clear answer without disguising uncertainty. It explains that the observed result is promising but insufficient by itself to justify a confident performance claim. It recommends validating the experiment and using an appropriate statistical decision rule, rather than simply demanding an indefinite delay.
15-point rubric: accurate figures (5); distinction between observation and inference (5); practical recommendation (3); concise accessible writing (2).
Avoid awarding marks for unnecessary jargon. A manager should be able to understand what the data say, what they do not yet establish and what action is reasonable.
How to assess SQL proficiency without turning the test into trivia
A practical SQL test should reflect the actual queries the analyst will write. For a reporting analyst, joins, grouping, filtering, null handling and date logic may be more relevant than obscure database-specific features. For an analytics engineer, window functions, query performance and data modelling may be essential.
Specify the SQL dialect and whether candidates have access to documentation. In most workplaces, analysts consult reference material. If the test is intended to measure reasoning, banning all references may reward memorisation over competence.
Include data-grain questions. Many damaging analytics errors arise not from invalid syntax but from a valid query that duplicates records or uses the wrong population. Ask candidates to explain what one row represents before they aggregate it.
If execution is allowed, use a safe synthetic dataset and a restricted environment. Do not give applicants access to production databases or actual customer records.
Evaluate data cleaning as a documented process
A strong analyst does not treat cleaning as an invisible step. They record which rows were excluded, why they were excluded, whether source records were changed and how those decisions affect the reported metric.
Missing values deserve special attention. A blank can mean not applicable, not yet recorded, unavailable or a genuine collection error. Automatically converting every blank to zero may create false findings. Likewise, duplicate rows can be legitimate in an event log but invalid in a table that promises one row per case.
Assess candidates on whether they identify the expected data grain and apply rules consistently. When several reasonable treatments exist, the candidate should state the assumptions and consider the effect of alternative choices.
Distinguish correlation, causation and operational action
Business stakeholders often want a single explanation for a metric movement. An analyst may observe that customers who use a particular feature retain better, but that does not by itself prove the feature caused retention. Existing customer differences, selection effects or other factors may explain the relationship.
Assessment scenarios should reward candidates who distinguish observation from inference. Ask what evidence would support a causal claim and what practical decision can be made with the evidence currently available. This does not mean analysts should avoid recommendations; it means recommendations should reflect the strength and limits of the analysis.
When assessing experimentation, make sure the candidate is not penalised for declining to invent statistical certainty. The ability to say “we need to check” can be a critical professional skill.
Make dashboard and visualisation tasks meaningful
A visually attractive chart can conceal a misleading axis, a poorly defined metric or a confusing time window. Ask candidates to choose a chart for a specific stakeholder question and explain their choice. A trend over time may be better shown with a line chart; a comparison across a small number of categories may be clearer with bars.
Check that axes and units are labelled, comparisons use consistent periods, and caveats are visible. Do not overreward decorative polish. The objective is to help a decision-maker interpret evidence correctly.
If a role requires a particular business intelligence tool, provide a compatible environment or make the requirement explicit. Familiarity with one vendor's menus is not identical to analytical ability.
Use fair, job-related scoring standards
Write scoring anchors before administration. Give credit for correct reasoning and transparent assumptions even if a candidate uses an equivalent query structure or a different clear explanation. Separate calculation errors from conceptual errors.
A universal 70% pass mark is not automatically defensible. Ask qualified job experts what a minimally competent hire must demonstrate, especially on data integrity and privacy tasks. Document how any minimum standard relates to the actual job.
Scores should not be presented as probabilities of job success. A 90/100 result means the candidate performed well on the selected exercises under the stated conditions; it does not mean a 90% chance of strong job performance.
Where multiple reviewers score open-ended answers, calibrate them using examples. Investigate disagreements before making consequential decisions. Review whether time limits, inaccessible file formats or unnecessary language complexity create barriers unrelated to the job.
Protect candidate and customer data
Use invented datasets with no real names, contact details, credentials or identifiable transactions. Explain what candidate submissions will be used for, who can access them and how long they will be retained under the applicable policy.
Do not ask applicants to build an actual business dashboard or analyse confidential live customer data as unpaid recruitment work. A bounded synthetic exercise can provide evidence without exposing commercial information or extracting free consulting.
If automated grading is used, inspect its rules and error patterns. Machine-generated scores are not inherently fair or accurate. Provide a process to investigate scoring or technical problems, especially where an unusual but valid answer may have been rejected.
Integrate the assessment with structured interviews
A structured follow-up can ask candidates why they chose a denominator, how they would reconcile conflicting dashboards or what they would do if a stakeholder pressured them to report a favourable number. Ask comparable core questions and score responses against predefined criteria.
Use the assessment alongside relevant experience, work examples and other job-related evidence. Avoid counting SQL performance repeatedly while overlooking whether the person can communicate or investigate data quality. The weighting should reflect the role, not the convenience of automated marking.
After hiring, review the assessment periodically. Track ambiguous questions, assessor agreement and whether the tasks still resemble actual work. When sufficient appropriate evidence is available, evaluate relationships with job outcomes and potential fairness concerns. A few candidate results cannot establish predictive validity.
Employer implementation checklist
- Identify the business decisions and datasets the analyst will handle.
- Define the required tools and distinguish trainable skills from entry requirements.
- Create synthetic datasets with documented grain and metric definitions.
- Check every calculation, SQL query and answer key independently.
- Specify permitted tools, reference materials and the SQL dialect.
- Write partial-credit rubrics before seeing responses.
- Pilot the exercise for timing, ambiguity, accessibility and technical issues.
- Calibrate assessors for open-ended interpretations and recommendations.
- Document how results will be used and justify any minimum standard.
- Review the assessment as business questions, systems and evidence evolve.
Frequently asked questions
What should a data analyst skills assessment test?
It should sample the work the successful analyst will perform: metric definitions, SQL, data quality, interpretation, reporting and responsible handling of data. The balance depends on the vacancy.
Is a data analyst test the same as an Excel skills test?
No. Spreadsheet proficiency can be relevant, but data analysis also requires correct metric definitions, data-grain reasoning, query logic, uncertainty interpretation and decision communication. The two areas overlap without being interchangeable.
Should a SQL test allow documentation?
Often yes, when reference use reflects normal work and the purpose is to assess reasoning rather than memorisation. The rules should be disclosed and applied consistently.
Do all data analysts need advanced statistics?
No. The required level depends on the role. An experimentation analyst may need stronger statistical inference than an operational reporting analyst. The assessment should follow the job analysis.
How do employers score different but correct SQL queries?
Use a rubric based on the correctness of the result, treatment of edge cases, clarity and relevant efficiency. Do not require identical syntax where equivalent approaches are valid in the stated environment.
Should a candidate be penalised for finding a problem in the dataset?
No. Detecting flawed assumptions or records may be exactly the competency being assessed. The candidate should explain the issue and how it affects the answer.
Can an assessment prove an analyst will make good decisions?
Not on its own. It provides evidence from selected tasks under controlled conditions. Combine it with other job-related information and review the assessment's effectiveness over time.
How long should the test take?
Pilot the exercises and choose a duration proportionate to the hiring stage. A brief screen followed by a more involved finalist work sample may reduce candidate burden.
Conclusion: Test the path from data to trustworthy decisions
A credible data analyst assessment does not stop at a correct query or an attractive dashboard. It asks whether the candidate knows what is being counted, can detect bad records, understands uncertainty and can explain a recommendation without overstating the evidence.
Use realistic synthetic tasks, transparent scoring and job-specific standards. That approach yields more meaningful hiring evidence than a long quiz on isolated functions or analytics vocabulary.
Related Assess guides
Explore these related guides:
