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
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess 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
Get started
Records Missing From Another Table
00:00
5 left

Records Missing From Another Table

EasySQL · PostgreSQL

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
Interviewer

Whenever you're ready, walk me through your approach or go straight to the code. The requirements and the two tables are in the Question tab.

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.