-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtop_paying_skills.sql
More file actions
26 lines (26 loc) · 1 KB
/
top_paying_skills.sql
File metadata and controls
26 lines (26 loc) · 1 KB
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
/*
What skills are required for the top-paying Data Engineer roles
- Use the top 10 highest paying Data Engineer jobs from the first query
- Add the specific skills required for these roles
- Why? It provides a detailed look at which high-paying jobs demand certain skills,
helping job seekers understand which skills to develop that align with top salaries
*/
WITH top_paying_jobs AS (
SELECT job_id,
company_dim.name As Company_name,
job_title,
salary_year_avg
FROM job_postings_fact
LEFT JOIN company_dim ON company_dim.company_id = job_postings_fact.company_id
WHERE job_title_short = 'Data Engineer'
AND job_location = 'Anywhere'
AND salary_year_avg IS NOT NULL
ORDER BY salary_year_avg DESC
LIMIT 10
)
SELECT top_paying_jobs.*,
skills
From top_paying_jobs
INNER JOIN skills_job_dim ON top_paying_jobs.job_id = skills_job_dim.job_id
INNER JOIN skills_dim ON skills_job_dim.skill_id = skills_dim.skill_id
ORDER BY salary_year_avg DESC;