{"id":26224892,"url":"https://github.com/chojogebutsu/postgresql-data-warehouse-project","last_synced_at":"2025-07-03T14:41:10.106Z","repository":{"id":274774655,"uuid":"924030464","full_name":"ChojoGebutsu/PostgreSQL-Data-Warehouse-Project","owner":"ChojoGebutsu","description":"Building a Data Warehouse with PostgreSQL, including ETL processes, Data Modeling, and Analytics.","archived":false,"fork":false,"pushed_at":"2025-02-20T06:46:19.000Z","size":1683,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T18:38:05.689Z","etag":null,"topics":["data-cleaning","data-engineering","data-warehouse","etl","plpgsql","postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChojoGebutsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-29T09:40:21.000Z","updated_at":"2025-03-04T08:16:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba78d7e0-3b34-4a1b-a07f-bf495a533f8b","html_url":"https://github.com/ChojoGebutsu/PostgreSQL-Data-Warehouse-Project","commit_stats":null,"previous_names":["chojogebutsu/sql_dwh_project","chojogebutsu/sql_data_warehouse_project","chojogebutsu/postgresql_data_warehouse_solution","chojogebutsu/postgresql_data_warehouse_project","chojogebutsu/postgresql-data-warehouse-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChojoGebutsu/PostgreSQL-Data-Warehouse-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChojoGebutsu%2FPostgreSQL-Data-Warehouse-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChojoGebutsu%2FPostgreSQL-Data-Warehouse-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChojoGebutsu%2FPostgreSQL-Data-Warehouse-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChojoGebutsu%2FPostgreSQL-Data-Warehouse-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChojoGebutsu","download_url":"https://codeload.github.com/ChojoGebutsu/PostgreSQL-Data-Warehouse-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChojoGebutsu%2FPostgreSQL-Data-Warehouse-Project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263343220,"owners_count":23452131,"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-cleaning","data-engineering","data-warehouse","etl","plpgsql","postgresql","sql"],"created_at":"2025-03-12T18:28:34.164Z","updated_at":"2025-07-03T14:41:10.095Z","avatar_url":"https://github.com/ChojoGebutsu.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Data Warehouse Project\n\nWelcome to the **PostgreSQL Data Warehouse Project** repository! 🚀  \n\nThis project exemplifies a robust data warehousing and analytics solution, encompassing the building of a data warehouse and the generation of actionable insights. Designed as a portfolio piece, it demonstrates industry-leading practices in data engineering and analytics.\n\n---\n\n## 📖 Project Overview\n\nThis project encompasses:\n\n1. **Data Architecture**: Architecting a modern data warehouse utilizing the Medallion Architecture, structured into **Bronze**, **Silver**, and **Gold** layers.\n2. **ETL Pipelines**: Extracting, transforming, and loading data from disparate source systems into the warehouse.\n3. **Data Modeling**: Crafting fact and dimension tables optimized for analytical querying.\n4. **Analytics \u0026 Reporting**: Developing SQL-based reports and dashboards to derive actionable insights.\n---\n\n## 🛠️ Tools I Used\n\nEverything is free!\n- **[Datasets](datasets/)**: Access the project datasets (CSV files).\n- **[PostgreSQL](https://www.postgresql.org/download/)**: Open-source relational database for hosting your data warehouse.\n- **[VS Code](https://code.visualstudio.com/download)**: A go-to GUI for PostgreSQL database management and executing SQL queries.\n- **[Notion Project Steps](https://shorturl.at/TIc1c)**: Access all project phases and tasks.\n\n---\n\n## 🚀 Project Requirements\n\n### Building the Data Warehouse (Data Engineering)\n\n#### Objective\nConstruct a modern data warehouse using PostgreSQL to consolidate sales data, facilitating analytical reporting and informed decision-making.\n\n#### Specifications\n- **Data Sources**: Import data from two source systems (ERP and CRM) provided as CSV files.\n- **Data Quality**: Cleanse and resolve data quality issues prior to analysis.\n- **Integration**: Merge both sources into a single, user-friendly data model designed for analytical queries.\n- **Scope**: Focus exclusively on the latest dataset; historization of data is not required.\n- **Documentation**: Provide comprehensive documentation of the data model to support both business stakeholders and analytics teams.\n\n---\n\n### BI: Analytics \u0026 Reporting (Data Analysis)\n\n#### Objective\nDevelop SQL-based analytics to deliver granular insights into:\n- **Customer Behavior**\n- **Product Performance**\n- **Sales Trends**\n\nThese insights empower stakeholders with critical business metrics, enabling strategic decision-making. \n\n---\n\n## 🏗️ Data Architecture\n\nThe data architecture for this project adheres to the Medallion Architecture, comprising **Bronze**, **Silver**, and **Gold** layers:\n1. **Bronze Layer**: Stores raw data in its original form from the source systems. Data is ingested from CSV files into the PostgreSQL database.\n2. **Silver Layer**: Involves data cleansing, standardization, and normalization processes to prepare data for analysis.\n3. **Gold Layer**: Hosts business-ready data modeled into a star schema for reporting and analytics.\n\n![Data Architecture](docs/data_architecture.png)\n\n---\n\n---\n\n## 📂 Repository Structure\n```\nPostgreSQL_Data_Warehouse_Project/\n│\n├── datasets/ # Raw datasets used for the project (ERP and CRM data)\n│\n├── docs/ # Project documentation and architecture details\n│ ├── ETL_process.png # A diagram created in Draw.io showing ETL techniques and methods used in this project\n│ ├── data_architecture.png # A diagram created in Draw.io showing the project's architecture\n│ ├── data_catalogue.md # Catalog of datasets, including field descriptions and metadata\n│ ├── data_flow.png # A diagram created in Draw.io for the data flow diagram\n│ ├── data_integration_model.png # A diagram created in Draw.io that shows how tables are related to each other.\n│ ├── gold_layer_data_model.png # A diagram created in Draw.io that shows gold layer data model (star schema)\n│ ├── naming-conventions.md # Consistent naming guidelines for tables, columns, and files\n│\n├── scripts/ # SQL scripts for ETL and transformations\n│ ├── bronze/ # Scripts for extracting and loading raw data\n│ ├── silver/ # Scripts for cleaning and transforming data\n│ ├── gold/ # Scripts for creating analytical models\n│\n├── tests/ # Test scripts and quality files\n│\n├── README.md # Project overview and instructions\n├── LICENSE # License information for the repository\n├── .gitignore # Files and directories to be ignored by Git\n```\n---\n\n\n## 🛡️ License\n\nThis project is licensed under the [MIT License](LICENSE). You are free to use, modify, and share this project with proper attribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchojogebutsu%2Fpostgresql-data-warehouse-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchojogebutsu%2Fpostgresql-data-warehouse-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchojogebutsu%2Fpostgresql-data-warehouse-project/lists"}