You are given a table Candidates containing candidate information with their skills. Your task is to find candidates who are qualified for a Data Scientist position.
A candidate is qualified if they have all three required skills:
PythonTableauPostgreSQL
Return the result ordered by candidate_id in ascending order.
Table Schema
| Column Name | Type | Description |
|---|---|---|
candidate_id
PK
|
int | Unique identifier for each candidate |
skill
PK
|
varchar | Skill possessed by the candidate |
Input & Output
| candidate_id | skill |
|---|---|
| 101 | Java |
| 101 | Python |
| 101 | MySQL |
| 101 | PostgreSQL |
| 101 | Tableau |
| 102 | Python |
| 102 | MySQL |
| 103 | Python |
| 103 | PostgreSQL |
| candidate_id |
|---|
| 101 |
Candidate 101 has all three required skills (Python, Tableau, PostgreSQL) plus additional skills. Candidate 102 only has Python, and candidate 103 has Python and PostgreSQL but missing Tableau.
| candidate_id | skill |
|---|---|
| 201 | Python |
| 201 | Tableau |
| 201 | PostgreSQL |
| 202 | Python |
| 202 | Tableau |
| 202 | PostgreSQL |
| 202 | R |
| 203 | Python |
| 203 | Java |
| candidate_id |
|---|
| 201 |
| 202 |
Both candidates 201 and 202 have all three required skills. Candidate 202 has an additional R skill. Candidate 203 is missing Tableau and PostgreSQL. Results are ordered by candidate_id.
| candidate_id | skill |
|---|---|
| 301 | Python |
| 301 | Java |
| 302 | Tableau |
| 302 | Excel |
| 303 | PostgreSQL |
| 303 | MySQL |
| candidate_id |
|---|
No candidate has all three required skills. Each candidate is missing at least two of the required skills for the Data Scientist position.
Constraints
-
1 ≤ candidate_id ≤ 1000 -
skillis a non-empty string - Skills are case-sensitive
- A candidate may have duplicate skill entries