SELECT 
    *
FROM information_schema.columns
WHERE
    table_catalog = 'data_jobs'
;


SELECT 
    sd.skills,
    ROUND(MEDIAN(jpf.salary_year_avg)) as median_salary,
    COUNT(jpf.*) as demand_skills
FROM job_postings_fact as jpf
INNER JOIN skills_job_dim as sjd
        ON jpf.job_id = sjd.job_id
INNER JOIN skills_dim as sd
    ON sjd.skill_id = sd.skill_id
WHERE 
    jpf.job_title_short LIKE 'Data Engineer'
    AND
    jpf.job_work_from_home = True

GROUP BY sd.skills
HAVING COUNT(jpf.*) > 100
ORDER BY 
    median_salary DESC
LIMIT 25
;


