Data Science Skills

ASKED IN INTERVIEW
2pts
Linked In

Problem Statement

LinkedIn is helping recruiters find the best Data Science candidates. You need to identify candidates who possess all three of the following skills: Python, Tableau, and PostgreSQL.

Write an SQL query to retrieve the candidate_id of these individuals.

Rules:

  • A candidate must have all three specific skills to be included.
  • Output column: candidate_id.
  • Results must be sorted by candidate_id in ascending order.
Tests your understanding of
Relational Division, Filtering and Aggregation

Input Tables

candidates
candidate_id(INTEGER)skill(VARCHAR)
101Python
101Tableau
101PostgreSQL
102Python
102Java
103Python
103Tableau
103PostgreSQL
103R
skills_master
skill_id(INTEGER)skill_name(VARCHAR)
1Python
2Tableau
3PostgreSQL
candidate_metadata
candidate_id(INTEGER)years_exp(INTEGER)
1013
1025
1032

Expected Output

candidate_id(INTEGER)
101
103

Tags

EasyASKED IN INTERVIEWRelational DivisionFilteringAggregation
10-15 min
62%

Hints