-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4_top_paying_skills.sql
More file actions
27 lines (26 loc) · 1.03 KB
/
4_top_paying_skills.sql
File metadata and controls
27 lines (26 loc) · 1.03 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
27
/*
GOAL: Identifying High-Value Skills for Data Analysts
PURPOSE: Reveal which technical skills correlate with highest salaries
Business Value: Helps professionals prioritize skill development for maximum earning potential
*/
SELECT
skills_dim.skills AS skill_name, -- Clean naming for readability
ROUND(AVG(salary_year_avg), 0) AS average_salary -- Rounded to whole dollars
FROM
job_postings_fact
/* Connection Path:
1. Jobs → Skills (through bridge table)
2. Skills IDs → Skill Names */
INNER JOIN skills_job_dim
ON job_postings_fact.job_id = skills_job_dim.job_id
INNER JOIN skills_dim
ON skills_job_dim.skill_id = skills_dim.skill_id
WHERE
job_title_short = 'Data Analyst' -- Focused role filter
AND salary_year_avg IS NOT NULL -- Only positions with salary data
AND salary_year_avg > 0 -- Additional data quality check
GROUP BY
skills_dim.skills
ORDER BY
average_salary DESC -- Show highest-paying skills first
LIMIT 25; -- Top 25 results