Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
Why Turing and Client Readiness
00:00
5 left

Why Turing and Client Readiness

MediumSQL · PostgreSQL

Problem

Why Turing and client readiness?

Using the provided Turing candidate, client, and readiness-check records, write a PostgreSQL query that summarizes readiness for active candidates. Include candidates even when they have no checks or no matching active client.

Output

  1. One row per active candidate
  2. Columns: candidate_id, candidate_name, client_name, completed_checks, avg_score, and readiness_status
  3. A candidate is ready only with at least two completed checks, no failed checks, and an average score meeting the client's threshold
  4. Sort ready candidates first, then by average score descending with nulls last, then by candidate ID

Schema

turing_candidates
ColumnTypeDescription
candidate_idPKINTUnique Turing candidate identifier
candidate_nameVARCHAR(100)Candidate display name
client_idINTAssigned client identifier
candidate_statusVARCHAR(20)Current candidate status
start_dateDATECandidate engagement start date
turing_clients
ColumnTypeDescription
client_idPKINTUnique client identifier
client_nameVARCHAR(100)Client display name
readiness_thresholdDECIMAL(5,2)Minimum average score required for readiness
is_activeBOOLEANWhether the client is currently active
client_readiness_checks
ColumnTypeDescription
check_idPKINTUnique readiness-check identifier
candidate_idINTCandidate evaluated by the check
check_typeVARCHAR(50)Type of readiness check
check_statusVARCHAR(20)Check outcome
scoreDECIMAL(5,2)Numeric check score
completed_atDATEDate the check was completed
Tablesturing_candidatesturing_clientsclient_readiness_checks
Interviewer

Your question is Why Turing and Client Readiness. Start with the requirements and the three tables in the Question tab.

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.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.