-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3_top_demand_skills.sql
More file actions
39 lines (39 loc) · 959 Bytes
/
3_top_demand_skills.sql
File metadata and controls
39 lines (39 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
Question: What are the most in-demand skills for data analysts?
- Join job postings to inner join table similar to query 2
- Identify the top 5 in-demand skills for a data analyst.
- Focus on all job postings.
Why? Retrieves the top 5 skills with the highest demand in the job market,
providing insights into the most valuable skills for job seekers.
*/
WITH top_demand_skills AS (
SELECT
COUNT(*) AS skill_count,
sd.skills
FROM
job_postings_fact jpf
INNER JOIN skills_job_dim sjd ON sjd.job_id = jpf.job_id
INNER JOIN skills_dim sd ON sd.skill_id = sjd.skill_id
WHERE
jpf.job_title_short = 'Data Analyst'
AND jpf.job_work_from_home = True
GROUP BY
sd.skills
ORDER BY
skill_count DESC
LIMIT
5
)
SELECT
skills,
skill_count
FROM
top_demand_skills
/*
Results
sql
excel
python
tableau
power bi
*/