The applicant_skills table lists one skill per row for each candidate (candidate_id, skill); a candidate can appear on several rows and the same skill can be recorded more than once. Return the candidate_id of every candidate who has all three required skills: Python, Tableau and PostgreSQL (exact spelling). Output column: candidate_id. Order by candidate_id ascending.
| Column | Type |
|---|---|
| candidate_id | INTEGER |
| skill | TEXT |
| candidate_id | skill |
|---|---|
| 101 | Python |
| 101 | Tableau |
| 101 | PostgreSQL |
| 102 | Python |
| 102 | Tableau |
| 103 | Python |
| 103 | Tableau |
| 103 | PostgreSQL |
| candidate_id |
|---|
| 101 |
| 103 |
Solve it in the live editor on this page — run on sample data, then submit against hidden tests.
‹ Creator Publishing Frequency · Knowledge Articles Without Reactions ›
{{ totalCount }} questions in the style asked at Amazon, Microsoft, Google, Meta, Flipkart and more — {{ hardPct }}% Hard. Write SQL in a real database engine in your browser, run it on sample data, then evaluate against hidden tests.
Company tags show where this type of question is commonly reported in interviews. Questions, data and solutions are written by TechTown.
{{ cur.statement }}
No submissions yet. Press Evaluate to submit your query.
{{ solutionSql }}
{{ out.error }}
You have solved your 3 free questions — nice work! Log in (free) to unlock all 150 questions, keep your streak and appear on the leaderboard.