{"id":51403649,"url":"https://github.com/chanupadeshan/advanced-data-analytics","last_synced_at":"2026-07-04T09:04:54.642Z","repository":{"id":319283660,"uuid":"1078219776","full_name":"chanupadeshan/advanced-data-analytics","owner":"chanupadeshan","description":"basic data analysis project using sql","archived":false,"fork":false,"pushed_at":"2025-10-17T11:54:48.000Z","size":810,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T14:49:50.455Z","etag":null,"topics":["cumulative-analysis","performance-analysis","sql"],"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/chanupadeshan.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-17T11:46:15.000Z","updated_at":"2025-10-17T11:56:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c747074-129c-4dfd-90c8-f8c529971fde","html_url":"https://github.com/chanupadeshan/advanced-data-analytics","commit_stats":null,"previous_names":["chanupadeshan/advanced-data-analytics"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chanupadeshan/advanced-data-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanupadeshan%2Fadvanced-data-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanupadeshan%2Fadvanced-data-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanupadeshan%2Fadvanced-data-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanupadeshan%2Fadvanced-data-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanupadeshan","download_url":"https://codeload.github.com/chanupadeshan/advanced-data-analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanupadeshan%2Fadvanced-data-analytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35115770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["cumulative-analysis","performance-analysis","sql"],"created_at":"2026-07-04T09:04:54.104Z","updated_at":"2026-07-04T09:04:54.635Z","avatar_url":"https://github.com/chanupadeshan.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# advanced-data-analytics\n\nThis repository contains SQL Server examples that build a small analytics warehouse and explore richer BI-style reporting. It expands on the basic project with customer, product, segmentation, and part-to-whole analyses. For the foundational setup, see Part 1, **Basic Data Analytics**, at https://github.com/chanupadeshan/basic-data-analytics.\n\n## Contents\n\n- `datasets/` — sample CSV files (`gold.dim_customers.csv`, `gold.dim_products.csv`, `gold.fact_sales.csv`)\n- `script/` — SQL scripts that create and analyze the `DataWarehouseAnalytics` database:\n  - `initialize_database.sql` — creates the database, `gold` schema, tables, and bulk-loads the CSV files (drops the database if it already exists).\n  - `change_over_time.sql` — monthly sales trends covering totals, orders, averages, and items sold.\n  - `cumulative_analysis.sql` — cumulative sales by month/year plus a yearly moving average.\n  - `performance_analysis.sql` — product performance compared to the category average and the previous year.\n  - `part_to_whole.sql` — breaks down sales contribution by product category and returns percentage-of-total metrics.\n  - `Data_segmentation.sql` — segments products into cost ranges and buckets customers (VIP, Regular, New) based on lifetime value and tenure.\n  - `customer_report.sql` — materializes `gold.report_customers` with KPIs such as total orders, sales, recency, lifespan, and spend segmentation.\n  - `product_report.sql` — materializes `gold.report_products` with sales KPIs, product segmentation, pricing insights, and recency tracking.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanupadeshan%2Fadvanced-data-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanupadeshan%2Fadvanced-data-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanupadeshan%2Fadvanced-data-analytics/lists"}