{"id":25535577,"url":"https://github.com/evanmathew/northwind-traders","last_synced_at":"2025-08-09T23:08:20.329Z","repository":{"id":277382141,"uuid":"931000790","full_name":"evanmathew/Northwind-Traders","owner":"evanmathew","description":"SQL-powered analysis of sales, employee performance, and customer behavior using PostgreSQL window functions. This project uncovers key business insights to optimize decision-making.","archived":false,"fork":false,"pushed_at":"2025-02-13T16:19:24.000Z","size":461,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T20:35:54.845Z","etag":null,"topics":["case-study","data-analysis","jupyter-notebook","northwind-traders","postgresql","python-postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/evanmathew.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,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T15:05:01.000Z","updated_at":"2025-02-13T16:36:23.000Z","dependencies_parsed_at":"2025-02-13T17:35:24.327Z","dependency_job_id":null,"html_url":"https://github.com/evanmathew/Northwind-Traders","commit_stats":null,"previous_names":["evanmathew/northwind-traders"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evanmathew/Northwind-Traders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmathew%2FNorthwind-Traders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmathew%2FNorthwind-Traders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmathew%2FNorthwind-Traders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmathew%2FNorthwind-Traders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanmathew","download_url":"https://codeload.github.com/evanmathew/Northwind-Traders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmathew%2FNorthwind-Traders/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269649848,"owners_count":24453541,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["case-study","data-analysis","jupyter-notebook","northwind-traders","postgresql","python-postgresql","sql"],"created_at":"2025-02-20T04:22:02.755Z","updated_at":"2025-08-09T23:08:20.292Z","avatar_url":"https://github.com/evanmathew.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Northwind Traders Data Analysis Project\n## Scenario\n\nYou are a Data Analyst at Northwind Traders, an international gourmet food distributor. Management relies on data-driven insights to make strategic decisions across multiple areas of the business. This project focuses on:\n\n- ✅ Evaluating Employee Performance – Identifying key contributors to improve productivity.\n- ✅ Understanding Product \u0026 Category Sales – Optimizing inventory and marketing strategies.\n- ✅ Analyzing Sales Growth – Monitoring trends, tracking company progress, and forecasting demand.\n- ✅ Evaluating Customer Purchase Behavior – Targeting high-value customers with promotional incentives.\n\nUsing PostgreSQL window functions, you will generate these essential insights, helping management drive better business decisions.\n\n\n\n## Database Schema\n\nTo build efficient SQL queries, referencing the database schema is essential. The Northwind database contains over a dozen tables, but for this project, we focus only on the most relevant ones.\n\n📌 Below is a modified schema diagram highlighting the necessary tables for analysis:\n\n(If you're curious about the full schema, refer to the original [Northwind_schema](ER.png).\n\n\n\n## Technologies Used\n\n    PostgreSQL – Querying and analyzing structured data\n    SQL Window Functions – Advanced analytics for ranking, cumulative sales, and trend tracking\n    Jupyter Notebook – Running queries and visualizing data\n    Python (psycopg2 \u0026 pandas) – Query execution and data manipulation\n\nKey SQL Techniques Used\n\n- 🟢 Window Functions (ROW_NUMBER(), RANK(), DENSE_RANK(), SUM() OVER(), AVG() OVER())\n- 🟢 Common Table Expressions (CTEs) (WITH category_sales AS (...))\n- 🟢 Aggregations \u0026 Joins (SUM(), COUNT(), JOIN)\n- 🟢 Date Functions (DATE_TRUNC(), EXTRACT())\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanmathew%2Fnorthwind-traders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanmathew%2Fnorthwind-traders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanmathew%2Fnorthwind-traders/lists"}