Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Simple SQL Query

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Simple SQL Query. Start with the requirements and the one table on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

Blackstone Talent Group needs a simple view of active Software Engineer candidates submitted during the current recruiting period. Write a PostgreSQL query that returns the selected candidate details from the candidate_submissions table.

Requirements

  1. Return candidates whose role_title is Software Engineer, whose status is Submitted, and whose submitted_at is on or after January 1, 2025.
  2. Return candidate_name, role_title, and submitted_at in ascending submission-date order. Use candidate name as a tie-breaker.

Schema

candidate_submissions
ColumnTypeDescription
submission_idPKINTUnique submission identifier
candidate_nameVARCHAR(100)Candidate's full name
role_titleVARCHAR(100)Role associated with the submission
statusVARCHAR(30)Current recruiting status
submitted_atDATEDate the candidate was submitted
Tablescandidate_submissions
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results