---
title: "SQL Query Writing Assessment with Executed Queries"
description: "A SQL work sample that executes: six statements run twice, once on rows you have not seen, plus 34 keyed exercises on grain, joins and absences."
canonical: https://www.assessall.com/store/sql-query-work-sample
updated: 2026-09-05
source: AssessAll
---

# SQL Query Writing Assessment with Executed Queries

Your query runs. Then it runs again, on the rows you have not seen.

Six SQL statements executed against a real database, twice each, plus thirty-four keyed exercises on the judgement that decides whether a correct query answers the right question.

- About 55 minutes
- 40 questions
- Online, with a personal report
- Price and checkout: https://www.assessall.com/store/sql-query-work-sample

## Almost every SQL test in this market is multiple choice about SQL

There is a reason for that and it is not a good one: running code is more work to build than asking about it. So the standard product asks which of four statements is correct, and a candidate who can read SQL fluently and write it badly passes. This one gives you a schema, a worked example with its expected output, and a blank box, and then it runs what you write.

It runs it twice. The first run is on the rows printed in the exercise. The second is on a set you have not seen, and that set is the whole design. It carries the order placed in the previous year that a missing filter would count, the order with no lines that an inner join would silently drop, the rating somebody left blank that an average must skip, the invoice a feed loaded twice, the order timestamped four minutes before midnight on the last day of the month. None of it is exotic. All of it is what separates a statement that works from a statement that happened to work on the example.

Around the six statements sit thirty-four exercises on the part that decides whether a correct query is a useful one. What one row of your result is supposed to mean. Why a total went up when you added a table, and why the direction of that error tells you which fault it is. What an average does with a blank, and why an empty result is a different finding from a zero. What you check before a number reaches somebody who is going to act on it, and what you write beside it so a challenge is a short conversation rather than an argument. Twelve are single-choice, eight ask which of several things you would actually do, eight are plain claims to accept or reject, and six ask you to put a sequence in order.

The report places you on a five-rung ladder where every rung carries a description of what somebody at that rung does, so the rung above yours is the development goal written out rather than a label to aspire to. The cut for unsupervised work is drawn on the ladder as a dashed line with its own standard error printed beside it, because a cut is a judgement somebody made and burying it is how a band turns into a verdict. Your two spans are drawn across the rungs, which is the fastest way to see that a forty-exercise sitting cannot separate the top of one rung from the bottom of the next.

And if the execution service cannot run your statements, those six exercises leave the denominator rather than scoring zero, and the report says so in plain words. A platform that cannot run your code has not discovered anything about you.

## What it measures

Four parts of one skill, each measured by at least nine independent exercises:

## What you get

- **A rung with a behavioural description**: Not a percentage. What somebody at your rung does, and what the next one up does, which is the development goal stated as behaviour rather than as an adjective.
- **Both spans drawn on the ladder**: The sixty-eight and ninety-five per cent spans across the rungs, so the width of the uncertainty is visible against the thing it is uncertain about.
- **The published cut, with its own error**: Drawn on the ladder as a line, with the standard error of judgment behind it printed. You are entitled to disagree with where it sits and to see your score against it.
- **Six statements, and whether each held**: Passed on the worked example and held on the hidden rows, reported separately for every task. The gap between those two columns is the reading worth having.
- **Four parts as strength and cost**: Grain, joins, absences and checking — what getting each right gets you, and where each one goes wrong when it is overdone.
- **A reliability table with the refusal in it**: Items, omega, and what that permits, part by part, with the parts that cannot carry a number saying so rather than printing one.

## Inside your report

Illustrative sample — your report is generated from your own responses.

## Who it is for

- Analysts and engineers who write SQL and want a work sample rather than a quiz
- Hiring teams who need to know whether a candidate's query survives real data
- Data teams setting a defensible bar for unsupervised query work
- Anybody who has sent a number that turned out to be double what it should have been

## Frequently asked questions

### Do I actually write SQL, or choose from options?

You write it. Six exercises give you a schema, a worked example with its expected output, and a blank box, and your statement is executed against a real database. The other thirty-four are keyed exercises about judgement rather than syntax, in four different formats, because a form of one type repeated forty times measures the format alongside the skill.

### What is the hidden second set of rows?

The same statement is run against a second dataset you have not seen. It carries the ordinary complications that separate a query that works from one that happened to work: a duplicate row from a feed that ran twice, an order with no lines, a rating left blank, an order timestamped late on the last day of a month. Nothing about it is a trick, and it is where most statements that pass the example stop passing.

### Which dialect is it?

Standard SQL executed on SQLite. Every exercise is written so that nothing dialect-specific decides the answer, and the schema and the expected output are printed in the exercise. If your statement runs anywhere it will run here.

### What happens if the code cannot be executed?

Those exercises are reported as not run, they leave the denominator rather than scoring zero, and the report says so on the page. Your score comes from the thirty-four keyed exercises and is unaffected. A platform that could not run your code has not discovered anything about you, and reporting it as though it had would be the platform's failure written up as yours.

### How long is it and what does it cost?

About fifty-five minutes for forty exercises. ₹999 in India, inclusive of GST, or US$9.99 elsewhere, one-time, for the sitting and the full report. Nothing is timed exercise by exercise and no part of the score uses how fast you answered.

---

Source: https://www.assessall.com/store/sql-query-work-sample
