Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Records Missing From Another Table

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

Your question is Records Missing From Another Table. Start with the requirements and the two tables 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

Revature needs to identify active QA Engineer candidates who have not submitted the required PostgreSQL assessment in the Revature learning platform. Write a PostgreSQL query that finds candidates present in the candidate roster but absent from the required assessment submissions.

Requirements

  1. Return only active candidates whose track is QA Engineer.
  2. Identify candidates with no submission for assessment code POSTGRESQL-BASICS.
  3. Return candidate_id, full_name, and track, ordered by candidate_id ascending.

Place the assessment-code condition in the join logic so that submissions for other assessments do not incorrectly count as matches.

Schema

qa_candidates
ColumnTypeDescription
candidate_idPKINTUnique candidate identifier
full_nameVARCHAR(100)Candidate's full name
trackVARCHAR(50)Assigned Revature training track
is_activeBOOLEANWhether the candidate is currently active
qa_assessment_submissions
ColumnTypeDescription
submission_idPKINTUnique assessment submission identifier
candidate_idINTCandidate associated with the submission
assessment_codeVARCHAR(50)Submitted assessment code
submitted_atDATEDate the assessment was submitted
scoreINTAssessment score when grading is complete
Tablesqa_candidatesqa_assessment_submissions
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results