Create assessment
All templates
Video interviews

SQL and Data Modeling

Assesses applied SQL and relational modeling in PostgreSQL: joins, aggregations, NULL, indexes, transactions and schema design. Suited for developers, data analysts and data engineers.

Sample questions

Taken from the template itself. Questions with a recorded answer key are left out, so reading this page cannot help anyone pass the test.

As the candidate sees it

SQL and Data Modeling

8 questions25 min
  1. 1.Short text

    Which window expression numbers each customer's orders from newest to oldest?

    You want only the latest order of each customer from the table orders(id, customer_id, created_at, amount), then filter on row number 1. Answer with the window function expression you would use in the SELECT.

  2. 2.Long text

    How would you model appointment booking so overlapping slots are impossible?

    A clinic chain needs a PostgreSQL database for bookings: locations, practitioners (who work at more than one location), patients, and appointments with start and end times. A practitioner can never have two overlapping appointments, even when two receptionists book at the same time. Canceled appointments must stay in the history. Describe the main tables, keys, constraints and indexes, and explain how the database enforces the no-overlap rule.

  • Shown once you copy the template
  • Shown once you copy the template
  • Shown once you copy the template

6 more questions in the full template.

A man with earphones at a laptop, taking notes during a recorded interview.

How this template was made, and what you can check

  • Are these the real questions?

    Yes. The questions on this page are the questions a candidate gets. They are not samples written for the site: they come from the template itself, word for word.

  • Why are some questions missing from this page?

    Any question with a recorded answer key is left out, so that reading this page cannot help anyone pass. The count of what is missing is shown; the questions themselves appear once you copy the template.

  • Which language does the candidate see?

    Every template exists in English and Portuguese. The candidate answers in theirs and you read in yours.

  • Will this template work on my plan?

    Question types are checked against your plan by the database itself, so a template never promises a type your plan cannot run. Building assessments and collecting answers is free; automatic scoring starts on the Starter plan.

  • Can I change the questions?

    Once you copy it, the template is yours: change the wording, drop a question, add your own. None of this is fixed.

  • How fast can I send it?

    Create a free account, copy the template and share the link. The candidate opens it in the browser, with nothing to install.

Use this template on your next opening

Copy the template, change what you want, send a link. Assessly marks each answer, scores it and explains the score.

What comes back to you

Short text

Which window expression numbers each customer's orders from newest to oldest?

Answer

78

Score

Why this score

The question is real. The answer and the score are drawn as an example of what a review looks like.