Data Analytics Skills
Beginner Mode
Objective
Write a SQL query to identify candidates who have all three required skills: Python, Tableau, and PostgreSQL.
Table Schema:
- candidates
| Column | Type | Description |
|---|---|---|
| candidate_id | INTEGER | Unique identifier for each candidate |
| skill | VARCHAR | Name of the skill possessed by the candidate |
Task Requirements:
- Identify candidates who have Python, Tableau, and PostgreSQL skills
- Return only the candidate IDs of qualified candidates
- Sort results in ascending order by candidate_id
Output columns: candidate_id
Examples
Example 1:
Output:
Input:
| candidates | |
|---|---|
| candidate_id | skill |
| 101 | Python |
| 101 | Tableau |
| 101 | PostgreSQL |
| 102 | Python |
| 102 | Tableau |
| 103 | Python |
| 103 | PostgreSQL |
| 104 | Python |
| 104 | Tableau |
| 104 | PostgreSQL |
| candidate_id |
|---|
| 101 |
| 104 |
Code Environment
Sign in or try as guest to run your code.
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →
LinkedIn