Test library

SQL test: measure data fluency with real queries

Candidates write and run queries in a hands-on environment, and grading compares the output with the expected result — from basic SELECT to joins and window functions.

SQL test

What is an online SQL test for hiring?

An online SQL test for hiring is an assessment where candidates write queries against a real database and the score comes from comparing their result with the expected one. In Coodesh database challenges, the candidate gets a ready-made database, writes queries in a SQL editor, runs them as often as needed and sees the output as a table.

Multiple-choice questions about JOINs tell you little about someone who has to pull the right numbers out of real tables. Because grading looks at the result, any query that reaches the right answer scores, not just the one the reviewer had in mind. Scoring is automatic, and human review is still available in the assessment results.

  • SQLite database: a file up to 10 MB or a script up to 1 MB.
  • Auto-grading compares query results row by row.
  • Table names are listed next to the question.
  • Questions in English, Spanish or Portuguese.

How the SQL assessment works

  1. Set up the database

    Upload a .sqlite or .sqlite3 file with at least one table with data, or write a CREATE TABLE and INSERT script on screen. Uploaded databases can be reused in other questions.

  2. Write the reference query

    Your query becomes the answer key. Run it before saving and check that the output is exactly what the question asks for.

  3. Candidates query the data

    They see the question and available tables on one side and the editor on the other. Running a query shows a results table that highlights rows that differ, are extra or are missing.

  4. Scores on submit

    Grading uses the query saved when the candidate finishes the question. You see the submitted query, the score and the video if enabled, and your team decides the next step.

SQL test grading rules and features

Clear comparison rules make the score predictable for the author and the candidate.

  • Lenient on columns

    Column name casing is ignored and column order does not affect the score.

  • Row order you control

    Row order matters. Use ORDER BY in the reference query and say so in the question whenever order is part of the answer.

  • Last statement counts

    When an answer has several statements, grading uses the result of the last one, so candidates can set up steps before the final query.

  • Optional partial credit

    Off, scoring is all or nothing. On, the score is proportional to correct fields and rows, which helps when more than one approach is valid.

  • Video walkthrough

    Turn on video in the Presentation tab and candidates record an explanation of their query right after answering.

  • Integrity while writing

    With integrity on, SQL answers show how the query was written, and every run is logged on the assessment timeline.

Who should take a SQL assessment

  • Data and BI analysts

    For people who filter, aggregate and join tables all day, the test shows whether they reach the right number on their own.

  • Backend and data engineers

    Pair the SQL question with coding challenges in the same assessment, each section with its own weight in the final score.

  • Teams that want a real-world case

    Build a small database with realistic, anonymized data that looks like what the role works with every day.

Create a SQL test with realistic data

Start for free, set up a database and a reference query, and see how candidates handle real data.

Frequently asked questions

Which database engine does the SQL test use? Does it support MySQL or PostgreSQL?

The database runs on SQLite, both for uploaded files and for scripts written in the editor. Commands and functions specific to MySQL, PostgreSQL or SQL Server do not work and will fail when executed. When you create a question, write the prompt and the reference query in SQLite-compatible SQL, and run the reference query before saving to confirm the answer key.

How does auto-grading compare the candidate's query?

The platform compares the candidate's query result with the reference query result, row by row. Column name casing is ignored and column order does not matter, but row order does. If an answer has several statements, the last one counts. The score is calculated from the query saved when the candidate finished the question, so there is no manual grading queue.

Can I build the SQL test on a database similar to my company's?

Yes. Upload a .sqlite or .sqlite3 file up to 10 MB with at least one table with data; the platform checks extension, size, file integrity and data on upload. You can also write the creation script in the editor, up to 1 MB. Keep databases small, realistic and anonymized. Uploaded databases stay in a list and can be reused across SQL questions.

What does the candidate see during a SQL test?

Candidates see the question and the names of the available tables on one side and the SQL editor on the other. They only discover column contents by querying, so describe in the question what the query should return, which columns and in what order. Running a query shows a results table highlighting rows that differ, are extra or are missing. Tiny tables invite trial and error, so use a realistic amount of data.

Can I give partial credit or review grading manually?

Both. With partial credit off, the answer must match the answer key exactly to score. With it on, the score is proportional to correct fields and rows, which helps when more than one approach is valid. Grading is automatic, but a human reviewer can still review any answer in the assessment results, and the hiring decision is always made by someone on your team.

All your favorite tools, connected

Our ecosystem of deep integrations makes it easy to streamline your hiring processes.

SólidesAlura para EmpresasLinkedInUdemyGithubGreenhouseExcelInHireRecrutaiGupy

Backed by

Scale UP EndeavorNIU VenturesThe Venture city