melekergin / carbon_emissions_sql

Quick SQL Project to find the industry polluting the most in 2017.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŒ๐Ÿ”ฌ Examining Product Carbon Footprints ๐Ÿ“Š๐ŸŒฑ

๐Ÿ“š This SQL project delves into the fascinating realm of product carbon footprints (PCFs) to explore the environmental impact of various products. The dataset, sourced from nature.com, provides valuable insights into the greenhouse gas emissions associated with different companies and their products. ๐ŸŒโ™ป๏ธ

๐Ÿ” The primary focus of this analysis is to investigate and quantify the carbon footprint of products across different stages of production.

๐Ÿ“‹ Data Description

Factories creating emissions Photo by Maxim Tolchinskiy on Unsplash

Greenhouse gas emissions attributable to productsโ€”from food to sneakers to appliancesโ€”make up more than 75% of global emissions. -The Carbon Catalogue

Examining Product Carbon Footprints

The data, which is publicly available on nature.com, contains product carbon footprints (PCFs) for various companies. PCFs are the greenhouse gas emissions attributable to a given product, measured in CO2 (carbon dioxide equivalent).

This data is stored in a PostgreSQL database containing one table, product_emissions, which looks at PCFs by product as well as the stage of production these emissions occurred in. Here's a snapshot of what product_emissions contains in each column:

product_emissions Table

field data_type
id VARCHAR
year INT
product_name VARCHAR
company VARCHAR
country VARCHAR
industry_group VARCHAR
weight_kg NUMERIC
carbon_footprint_pcf NUMERIC
upstream_percent_total_pcf VARCHAR
operations_percent_total_pcf VARCHAR
downstream_percent_total_pcf VARCHAR

๐Ÿ“Š Exploratory Analysis: Carbon Footprint by Industry in 2017

Steps:

  • ๐Ÿ”ข Count the total number of records in the "product_emissions" table, revealing 866 entries.
  • ๐Ÿ“‹ Retrieve and display a snapshot of the dataset, sorted in descending order based on the year.
  • ๐Ÿ“ˆ Explore various columns, including product name, company, country, industry group, weight in kilograms, carbon footprint (PCF), and percentages of emissions at different stages.
  • ๐Ÿ” Conduct a grouped analysis based on industry group and year, filtering for the year 2017.
  • ๐Ÿงฎ Calculate the count of companies in each industry group and the total carbon footprint (PCF) rounded to one decimal place.
  • ๐Ÿ”ข Sort the results in descending order based on the total industry footprint.
  • ๐Ÿ’ก Uncover insights such as the Materials industry having 11 companies with a total carbon footprint of 107,129.0, followed by Capital Goods with 4 companies and a footprint of 94,942.7.
  • ๐ŸŒโ™ป๏ธ The project aims to raise awareness about product carbon footprints and promote environmentally conscious practices across industries. By leveraging SQL analysis techniques, we can contribute to a more sustainable future for our planet. ๐ŸŒฑ๐Ÿ”
industry_group count_industry total_industry_footprint
Materials 11 107,129.0
Capital Goods 4 94,942.7
Technology Hardware & Equipment 22 21,865.1
Food, Beverage & Tobacco 22 3,161.5
Commercial & Professional Services 2 740.6
Software & Services 1 690.0

๐Ÿงช Results and Findings

Based on the analysis of the product carbon footprints in 2017, the industries with the highest total carbon footprints are:

  • Materials with a total footprint of 107,129.0
  • Capital Goods with a total footprint of 94,942.7
  • Technology Hardware & Equipment with a total footprint of 21,865.1

On the other hand, the industries with relatively lower total carbon footprints are:

  • Food, Beverage & Tobacco with a total footprint of 3,161.5
  • Commercial & Professional Services with a total footprint of 740.6
  • Software & Services with a total footprint of 690.0

๐Ÿ“‘ Queries and Code

The SQL queries used in this project can be found in the jupyter notebook file.

To examine the carbon footprint of each industry in the dataset, the following SQL query was used:

๐Ÿง‘โ€๐Ÿ’ป Query example:

code

๐Ÿ‘จโ€๐Ÿ”ฌ Query output:

code_result

About

Quick SQL Project to find the industry polluting the most in 2017.


Languages

Language:Jupyter Notebook 100.0%