{"id":30252107,"url":"https://github.com/nada-ibrahim12/northwind-sql-analytics","last_synced_at":"2025-10-12T02:14:22.677Z","repository":{"id":305062119,"uuid":"1020908751","full_name":"Nada-ibrahim12/northwind-sql-analytics","owner":"Nada-ibrahim12","description":"Practical SQL queries, KPIs, and Views for the Northwind sample database. Focused on data analysis and reporting with SQL Server","archived":false,"fork":false,"pushed_at":"2025-07-26T16:58:06.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T21:31:13.683Z","etag":null,"topics":["cte","joins","procedures","sql","sqlserver","subqueries","tsql","views"],"latest_commit_sha":null,"homepage":"","language":"TSQL","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/Nada-ibrahim12.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,"zenodo":null}},"created_at":"2025-07-16T15:21:05.000Z","updated_at":"2025-07-26T16:58:10.000Z","dependencies_parsed_at":"2025-07-18T06:08:38.204Z","dependency_job_id":"8ee4c148-8b92-491f-9afd-bb184dc1712e","html_url":"https://github.com/Nada-ibrahim12/northwind-sql-analytics","commit_stats":null,"previous_names":["nada-ibrahim12/northwind-sql-analytics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nada-ibrahim12/northwind-sql-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nada-ibrahim12%2Fnorthwind-sql-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nada-ibrahim12%2Fnorthwind-sql-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nada-ibrahim12%2Fnorthwind-sql-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nada-ibrahim12%2Fnorthwind-sql-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nada-ibrahim12","download_url":"https://codeload.github.com/Nada-ibrahim12/northwind-sql-analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nada-ibrahim12%2Fnorthwind-sql-analytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270559056,"owners_count":24606652,"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-15T02:00:12.559Z","response_time":110,"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":["cte","joins","procedures","sql","sqlserver","subqueries","tsql","views"],"created_at":"2025-08-15T11:12:05.520Z","updated_at":"2025-10-12T02:14:17.630Z","avatar_url":"https://github.com/Nada-ibrahim12.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# northwind-sql-analytics\n\nPractical SQL Server practice project with 50+ KPIs, Views, Stored Procedures, Functions, and advanced reporting logic — all using the classic Northwind sample database.\n\n---\n\n## About\n\nThis project is a comprehensive SQL Server practice space to build real-world skills in:\n- Business KPIs\n- Views\n- Stored Procedures\n- User-Defined Functions (UDFs)\n- Window Functions \u0026 CTEs\n- Performance Tuning \u0026 Indexing\n\n**Goal:** Practice production-ready T-SQL patterns used in data analysis, BI, and data engineering.\n\n---\n\n## What’s Included\n\n- `/views/` — `CREATE VIEW` scripts for reusable reporting logic\n- `/procedures/` — Stored Procedures for parameterized queries\n- `/functions/` — User-Defined Functions for reusable calculations\n- `/queries/` — Raw SQL practice queries covering 50+ business KPIs\n- ER Diagram — Northwind schema for reference\n\n---\n\n## Example KPIs\n\n- Total revenue \u0026 revenue trends by year, month, quarter\n- Revenue by country, customer, product, category, supplier\n- Average order value (AOV) overall \u0026 by customer segments\n- Top-selling products \u0026 suppliers\n- Order trends \u0026 shipping performance\n- Employee performance \u0026 orders handled\n- Repeat vs new customers\n- Freight cost analysis\n\n…and many more\n\n---\n\n## How to Use\n\n1. Clone this repo  \n2. Load the Northwind database into SQL Server (using the `.bak` or `.sql` script)  \n3. Run the scripts in `/views/`, `/procedures/` using SQL Server Management Studio (SSMS)  \n4. Modify and expand — test your own variations and optimize performance\n\n---\n\n## Why This Exists\n\nThis project helps me practice end-to-end T-SQL skills for real business scenarios, building confidence for:\n- Data Engineering\n- Data Analysis\n- BI Development\n- Reporting Automation\n\n---\n\n## Credits\n\n- Database: [Northwind Traders](https://github.com/Microsoft/sql-server-samples)\n\n---\n\n## Status\n\nRDBMS: SQL Server 2019+  \n50+ KPIs planned  \n30+ Views  \n10+ Stored Procedures  \n5+ User-Defined Functions  \nAll queries tested and versioned\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnada-ibrahim12%2Fnorthwind-sql-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnada-ibrahim12%2Fnorthwind-sql-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnada-ibrahim12%2Fnorthwind-sql-analytics/lists"}