{"id":18899573,"url":"https://github.com/imrandil/sql_practice_with_analysis","last_synced_at":"2026-05-10T06:37:17.235Z","repository":{"id":230507447,"uuid":"779128381","full_name":"IMRANDIL/SQL_Practice_with_analysis","owner":"IMRANDIL","description":"SQL practice using postgres db and docker as a tool to setup postgres, loving the sql way","archived":false,"fork":false,"pushed_at":"2024-03-30T03:59:08.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T09:17:25.053Z","etag":null,"topics":["data-analysis","docker","markdown","postgres","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IMRANDIL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-29T05:19:35.000Z","updated_at":"2024-03-30T04:00:01.000Z","dependencies_parsed_at":"2024-04-03T12:30:34.895Z","dependency_job_id":null,"html_url":"https://github.com/IMRANDIL/SQL_Practice_with_analysis","commit_stats":null,"previous_names":["imrandil/sql_practice_with_analysis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2FSQL_Practice_with_analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2FSQL_Practice_with_analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2FSQL_Practice_with_analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2FSQL_Practice_with_analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IMRANDIL","download_url":"https://codeload.github.com/IMRANDIL/SQL_Practice_with_analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239879307,"owners_count":19712176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-analysis","docker","markdown","postgres","sql"],"created_at":"2024-11-08T08:46:53.609Z","updated_at":"2026-03-02T00:30:27.771Z","avatar_url":"https://github.com/IMRANDIL.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nIn today's dynamic job market, understanding the demand for specific skills and their corresponding salary trends is crucial for both job seekers and employers alike. Leveraging the power of SQL and PostgreSQL, we delve into job postings data to uncover insights that can inform strategic decisions.\n\n# Background\nImagine a scenario where I, as a data enthusiast, set out on a quest to unearth valuable insights from the vast sea of job postings data. Armed with SQL prowess and a PostgreSQL database spun up effortlessly using Docker containers, I embarked on a journey to analyze job postings and reveal hidden patterns.\n\n# Query Overview\n```sql\nWITH skills_demand AS (\n    SELECT \n    sd.skills,\n    sd.skill_id, \n    count(*) as skill_count \n    from \n    job_postings_fact as jpf\n    INNER JOIN \n        skills_job_dim sjd ON jpf.job_id = sjd.job_id\n    INNER JOIN \n        skills_dim sd ON sjd.skill_id = sd.skill_id\n    WHERE salary_year_avg is not NULL\n    GROUP BY sd.skill_id\n\n), Average_salary As (\n    SELECT\n    sd.skill_id,\n    ROUND(AVG(jpf.salary_year_avg),0) as avg_salary\n    FROM job_postings_fact as jpf\n    INNER JOIN skills_job_dim as sjd on jpf.job_id = sjd.job_id\n    INNER JOIN skills_dim as sd on sd.skill_id = sjd.skill_id\n    WHERE salary_year_avg is not NULL\n    GROUP BY sd.skill_id\n    ORDER BY avg_salary desc\n)\n\n\nSELECT sd.skills, sd.skill_count, avs.avg_salary from skills_demand as sd INNER JOIN Average_salary as avs\non sd.skill_id = avs.skill_id\nWHERE sd.skill_count \u003e 10\nORDER BY sd.skill_count desc, avs.avg_salary desc\n```\n\nThe provided SQL query is a testament to the power of data analysis. It delves into two essential aspects: skills demand and average salary trends. By joining tables representing job postings, skills, and salary information, the query crunches numbers to reveal valuable insights.\n\n#### Skills Demand:\n\nThe `skills_demand` Common Table Expression (CTE) calculates the demand for various skills by counting their occurrences in job postings. It meticulously analyzes the connections between job postings and required skills, providing a comprehensive view of the skill landscape.\n\n#### Average Salary:\n\nThe `Average_salary` CTE computes the average salary associated with each skill, shedding light on the financial rewards linked to specific skill sets. By aggregating salary data and skill information, this CTE offers valuable insights into salary trends across different skills.\n\n# Some Previews\n![Alt text](https://github.com/IMRANDIL/SQL_Practice_with_analysis/blob/main/assets/data_analysis.png)\n\n\n\n\nhttps://github.com/IMRANDIL/SQL_Practice_with_analysis/assets/71559091/e7dfbd60-84aa-492c-9459-adb740913e18\n\n\n\n\n# Conclusion\n\nThis SQL query represents a crucial step towards understanding the job market dynamics. It empowers stakeholders with actionable insights, enabling informed decisions regarding skill acquisition, recruitment strategies, and talent management.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimrandil%2Fsql_practice_with_analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimrandil%2Fsql_practice_with_analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimrandil%2Fsql_practice_with_analysis/lists"}