SQLSQL
#12

Find Unmatched Records with LEFT JOIN Anti-Pattern in SQL

EasyCrackNonTech
Interview Question #12
Asked at CrackNonTech

Given `candidates` (candidate_id, name, email) and `offers` (offer_id, candidate_id, company_name), write a query to find all candidates who have NOT yet received any job offers.

Input Table: candidates & offers
3 rows preview
candidate_idnameoffer_idcompany_name
1Sachin Kumar901PwC
2Shreya Aggarwal902HPE
3Vikram MalhotraNULLNULL
Expected Output Structure1 rows
candidate_idnameemail
3Vikram Malhotravikram@example.com
Interview Context

Asked frequently in data analyst and business analyst technical rounds. Focus on clean filtering, optimal indexing usage, and unambiguous column selection.

SQLPostgreSQL 15
Ready to execute

Click "Run Query" or press Ctrl + Enter to test your query.

Output will be verified against the test dataset.

Chat with us