SQL assessment test on a real database_

Candidates for data and backend roles solve realistic SQL tasks against a database in Codility Screen. Your talent team sees a scored result for each candidate before an engineer spends time on the first interview.

verifiedEvery task is designed by assessment engineers and reviewed by occupational psychologists.

Codility
Task 1
Task 2
timer38:12
play_arrowRun query
Submit
sql Medium
Monthly revenue by region
Write a query that returns the total revenue for each region and month of 2026. Order the result by month, then by revenue from highest to lowest.
Tables
tableorders
idinteger customer_idinteger amountnumeric created_attimestamp
tablecustomers
idinteger nametext regiontext
solution.sql
PostgreSQLexpand_more
123456789
SELECT c.region, date_trunc(‘month’, o.created_at) AS month, SUM(o.amount) AS revenue FROM orders o JOIN customers c ON c.id = o.customer_id WHERE o.created_at >= ‘2026-01-01’ GROUP BY c.region, month ORDER BY month, revenue DESC;
Output Example tests check_circleQuery executed · 4 rows · 42 ms
regionmonthrevenue
EMEA2026-01-01 00:00:00184220.50
NA2026-01-01 00:00:00162904.10
APAC2026-01-01 00:00:0097318.75
EMEA2026-02-01 00:00:00191045.00
G2 Leader, Enterprise, Fall 2026 G2 Leader, Mid-Market, Fall 2026 G2 Best Estimated ROI, Enterprise, Fall 2026 G2 Most Implementable, Enterprise, Fall 2026

Codility is a G2 Leader in Technical Skills Screening, rated 4.6 out of 5 from verified customer reviews.

Today’s failing approach: SQL quizzes, take-home tasks, engineer phone screens and a test per team

checklist Challenge 1:

Multiple-choice quizzes

A multiple-choice SQL quiz asks candidates to pick the right answer from a list. A candidate can recognize a correct query without being able to write one. Candidates who pass the quiz can then fail basic SQL questions in the technical interview with your engineers.

home_work Challenge 2:

In-house take-home tasks

Your engineers write the schema, the sample data and the questions, then mark each submission by hand. A candidate can also paste the task into an AI chat tool and submit the generated query. The submission does not show whether the candidate wrote the query.

call Challenge 3:

Engineer phone screens

Your engineers spend interview time asking SQL questions that a screening task could answer. Each interviewer asks different questions at a different level of difficulty. As a result, candidates for the same role do not solve the same task.

splitscreen Challenge 4:

A different test for every team

Each hiring manager runs a separate SQL test, or none at all. Your talent team cannot compare results across teams or regions.

Run one SQL assessment test for hiring per data role

Codility Screen is a technical assessment platform for the screening stage of hiring. You can use Codility Screen for roles that use SQL, including data analysts, data engineers, analytics engineers and backend developers. Every candidate for a role solves the same SQL tasks. Your talent team then builds the shortlist for each role from the scored results.

Choose SQL tasks that match each data role

You can choose the tasks for each role from Codility’s task library. A data engineer assessment can combine SQL tasks with a Python task. A data analyst assessment can use SQL tasks only.

Where a role needs a custom task, your engineers can use Build with MCP. An engineer describes the task to an AI coding assistant such as Claude, Cursor or GitHub Copilot. The assistant then builds the task and its test cases. The engineer reviews the task before publishing it.

The difference: Your engineers no longer write a SQL test by hand for each role.
Assessments chevron_right Data engineer, EMEA
Save assessment
Data engineer, EMEA
task_alt3 tasks schedule95 min
addAdd task
Tasks
drag_indicator
Monthly revenue by region
sql · postgresql
Medium 30 min
drag_indicator
Customer retention cohorts
sql · postgresql
Hard 35 min
drag_indicator
Clean the event log
python 3
Medium 30 min
searchSearch the task library by skill or technology
Data analyst, London
Candidates Tasks Settings
Completed
24
At or above cut score
9
Cut score
60%
CandidateTask 1Task 2Task 3Total
Priya Nair100%100%100% 100%
Tomasz Wójcik100%100%0% 67%
Amara Okafor100%0%100% 67%
flagCut score 60%
Lucas Martin100%0%0% 33%
Sofia Rossi0%100%0% 33%
syncResults synced to Greenhouse

Score every candidate’s SQL by the same rules

Codility scores the output of each candidate’s queries for correctness. Codility’s scoring is deterministic. The same output always earns the same score. There is no manual marking for automatically scored SQL tasks.

You set the cut score, the minimum overall score that your team expects for the role. Your talent team then sees which candidates reached the cut score.

Codility connects with applicant tracking systems (ATS), including Greenhouse, Lever, Workday and SmartRecruiters. Codility stores each result in the candidate’s ATS record.

The difference: Your talent team can compare candidates across teams and regions on the same scoring rules.

Review each candidate’s queries before the interview

Codility stores the queries that each candidate submitted with the score for each task. Your engineers can read the SQL to see how each candidate thinks through the task before they decide who to interview.

Codility can also collect integrity signals, which give reviewers evidence about how the candidate produced each query. The signals include paste events and identity verification.

You decide whether candidates can use the AI Assistant in each assessment. Where the AI Assistant is enabled, every candidate interaction is captured as reviewable AI activity.

The difference: Your engineers no longer spend interview time on SQL questions that the screening task already answered.
AO
Amara Okafor
Data analyst, London
hourglass_topAwaiting reviewer decision
Total score
67%
Tasks
Revenue by region100%
Retention cohorts0%
Late shipments100%
Submitted query check_circleCorrect output postgresql
SELECT c.region, date_trunc(‘month’, o.created_at) AS month, SUM(o.amount) AS revenue FROM orders o JOIN customers c ON c.id = o.customer_id GROUP BY c.region, month ORDER BY month, revenue DESC;
Integrity signals
content_pastePaste events1 event
badgeIdentity verificationVerified
AI activityAI Assistant enabled
12:04Asked how date_trunc groups timestamps
18:31Asked to explain a GROUP BY error
Book a 30-minute demo

Questions about SQL assessment tests

What is a SQL assessment test?

A SQL assessment test is a pre-employment assessment that checks whether a candidate can write SQL for the role. Some tests use multiple-choice questions. Other tests ask the candidate to write queries. Codility Screen uses the written-query format.

See the SQL tasks for one of your data roles

Bring one data role that you are hiring for. Codility will show you the SQL tasks for that role and how your team would review the scored results.

Book a 30-minute demo