{"id":27653938,"url":"https://github.com/sridevi-pemmasani/sql-project-ngo-operations","last_synced_at":"2025-04-24T05:09:40.266Z","repository":{"id":289133610,"uuid":"969339735","full_name":"Sridevi-Pemmasani/SQL-Project-NGO-Operations","owner":"Sridevi-Pemmasani","description":"SQL-Project-NGO-Operations","archived":false,"fork":false,"pushed_at":"2025-04-21T17:28:53.000Z","size":3201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T05:09:23.380Z","etag":null,"topics":["mysql-database","mysql-workbench","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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/Sridevi-Pemmasani.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-04-19T23:23:53.000Z","updated_at":"2025-04-21T17:28:57.000Z","dependencies_parsed_at":"2025-04-21T18:46:54.310Z","dependency_job_id":null,"html_url":"https://github.com/Sridevi-Pemmasani/SQL-Project-NGO-Operations","commit_stats":null,"previous_names":["sridevi-pemmasani/sql-project-ngo-operations"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sridevi-Pemmasani%2FSQL-Project-NGO-Operations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sridevi-Pemmasani%2FSQL-Project-NGO-Operations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sridevi-Pemmasani%2FSQL-Project-NGO-Operations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sridevi-Pemmasani%2FSQL-Project-NGO-Operations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sridevi-Pemmasani","download_url":"https://codeload.github.com/Sridevi-Pemmasani/SQL-Project-NGO-Operations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566510,"owners_count":21451232,"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":["mysql-database","mysql-workbench","sql"],"created_at":"2025-04-24T05:09:39.693Z","updated_at":"2025-04-24T05:09:40.251Z","avatar_url":"https://github.com/Sridevi-Pemmasani.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SQL Project - NGO Operations\n\n## 1. Project Overview\n\nThis project aims to design and implement a comprehensive database system and optimizing the operations of a non-governmental organization (NGO) using SQL. The dataset includes information about staff, volunteers, donars, donations, beneficiaries, projects, activities, expenses and feedback. The goal is to extract insights to support data-driven decision-making.\n\n---\n\n## 2. Objectives\n\n- Create a new database from scratch to support operational insights for a Non-Governmental Organization (NGO).\n- Design and implement a normalized database structure to ensure data consistency and integrity.\n- Creat primary and dependent tables to maintain proper relationships and eliminate redundancy.\n- Prepare and upload data into the database.\n- Extract insights using complex SQL queries on volunteer engagement, donations, programs, and beneficiary impact.\n- Provide insights and Recomendations\n\n---\n\n## 3. Dataset Description\n### 3.1 Strong / Primary Tables\n\nThe project uses a relational database consisting of the following basic tables:\n\n1. `Staff` - Represents the permanent employees of the NGO who play various roles in managing operations and implementing projects\n2. `Staff Role` - Defines various roles that staff members can have within the NGO, such as NGO Head, Fundraising Manager, or Operations Manager.\n3. `Volunteers` - Represents individuals who contribute their time and skills to the NGO's projects and activities on a voluntary basis.\n4. `Projects` - Represents the various initiatives undertaken by the NGO to achieve its mission.\n5. `ProjectActivities` - Represents specific activities that fall under a project. Each project can have multiple activities.\n6. `Donars` - Represents individuals or organizations providing financial contributions to the NGO.\n7. `Beneficiaries` - Represents the individuals or groups who benefit from the NGO’s projects.\n8. `Expenses` - Tracks the financial expenditure associated with each project.\n\n### 3.2 Week / Secondary Tables\n\nBelow are the additional tables required to maintain the relationships and among the given tables:\n\n9. `VolunteerHours` - Tracks the hours contributed by volunteers to specific project activities.\n10. `Beneficiaries_Feedback` - Captures feedback provided by beneficiaries on the projects they were part of.\n11. `Donations` - Tracks financial contributions made by donors to specific projects.\n\nThese tables are connected via foreign keys to maintain data integrity.\n\n### 3.3 Strong Relationsships\n\n1.\tStaff manages Projects (Staff to Projects, 1:N)\n2.\tProjects include ProjectActivities (Projects to ProjectActivities, 1:N)\n3.\tDonors contribute to Projects through Donations (Donors to Donations, N:M via Projects)\n4.\tBeneficiaries provide Feedback on Projects (Beneficiaries to Feedback, N:M via Projects)\n5.\tVolunteers contribute hours to ProjectActivities (Volunteers to VolunteerHours, N:M via ProjectActivities)\n\n### 3.4 Weak Relationships\n\n1.\tVolunteerHours is associated with Volunteer and Activities (N:M:M relationship with Volunteers and Activities)\n2.\tDonations depend on Donors and Projects\n3.\tBeneficiaries_Feedback depends on Beneficiaries and Projects\n\n---\n\n## 4. Tools \u0026 Technologies\n\n- **MySQL Server** - The engine that runs and manages the database operations.\n- **MySQL** - An open-source RDBMS used for storing and managing relational data.\n- **MySQL Workbench** - A visual tool for database design and management. Used for ER diagrams, schema creation, and running SQL queries. \n- **SQL (Structured Query Language)** - The language used to define, manipulate, and query data in the MySQL database.\n- **Draw.io** - Used for ER modeling and visualizing database structure before implementation\n\n---\n\n## 5. Data Model Diagram\n\n![ER Diagram](Images/NGOOperations.drawio.png)\n\n---\n\n## 6. Key SQL Queries\n\n#### 6.1 1. Database and Tables Creation (DDL)\n![1. DDL Queries](Code/1.%20Database%20and%20Tables%20Creation.sql)\n\n\n#### 6.1 2. Additional DDL Queries\n![2. Additional DDL Queries](Code/2.%20Additional%20DDL%20Queries.sql)\n\n#### 6.1 3. Database Manipulation Queries (DML)\n![3. DML Queries](Code/3.%20DML%20Queries.sql)\n\n\n#### 6.1 4. Data Retreival with Filters and Operations\n![4. Data Retreival with Filters and Operations](Code/4.%20Data%20Retreival%20with%20Filters%20and%20Operations.sql)\n\n\n#### 6.1 5. Aggregation Queries\n![5. Aggregation Queries](Code/5.%20Aggregation%20Queries.sql)\n\n\n#### 6.1 6. Window Functions and Subqueries\n![6. Window Functions and Subqueries](Code/6.%20Window%20Functions%20and%20Subqueries.sql)\n\n\n#### 6.1 7. Common Table Expression (CTEs)\n![7. NGO Operations_Queries_CTEs](Code/7.%20NGO%20Operations_Queries_CTEs.sql)\n\n\n#### 6.1 8. Queries_Views\n![8. NGO Operations_Queries_Views](Code/8.%20NGO%20Operations_Queries_Views.sql)\n\n\n#### 6.1 9. Queries_StoredProcedures\n![9. NGO Operations_Queries_StoredProcedures](Code/9.%20NGO%20Operations_Queries_StoredProcedures.sql)\n\n#### 6.1 10. NGO Operations Insights\n![12. NGO Operations Insights](Code/12.%20NGO%20Operations%20Insights.sql)\n\n---\n\n## 7. Findings \u0026 Recommendations\n\n### 💡 **Key Insights:**\n\n✅ **Donor Contribution Concentration:** A small group of major donors is responsible for a significant portion of the total funds raised.\n\n✅ **Seasonal \u0026 Event-Based Donation Trends:** Donation volumes fluctuate depending on the season and specific events or campaigns.\n\n✅ **Volunteer Resource Imbalance:** Volunteer engagement is not consistently aligned with project needs—some projects face overstaffing while others are understaffed.\n\n✅ **Underperforming Projects Identified:** A few projects are consistently showing low performance or impact, requiring strategic attention.\n\n---\n\n### 🚀 **Recommended Actions:**\n\n🌟 **Enhance Donor Engagement:** Introduce loyalty and recognition programs (e.g., donor spotlights, milestone awards) to attract and retain high-value donors, especially for underfunded projects.\n\n📅 **Strategic Fundraising Planning:** Develop seasonal fundraising calendars and event-based campaigns to better manage fluctuations and ensure consistent funding throughout the year.\n\n🧩 **Optimize Volunteer Allocation:** Implement a volunteer management system that matches volunteer skills and availability with specific project demands to improve efficiency and satisfaction.\n\n💬 **Collect \u0026 Act on Beneficiary Feedback:** Regularly gather structured feedback from beneficiaries to assess service quality, identify improvement areas, and increase impact.\n\n---\n\n## 8 Challenges Faced\n\n- Inconsistent data entries and missing values\n- Complex joins due to many-to-many relationships\n- Normalization needed for program-beneficiary mapping\n\n---\n\n## 9. Conclusion\n\nSQL can provide powerful insights into NGO operations by uncovering patterns in donations, volunteers, and project outcomes. These insights help NGOs maximize impact and improve transparency with stakeholders.\n\n---\n\n## 10. Screenshots\n**Few Query Results / NGO Operations Insights:**\n\n**1. Donar Contributions against Different Projects**\n\n![Donar Contributions against Different Projects](Images/DonationsTrackbyDonars4ProjectandNTime.png)\n\n**2. Average Donations for Project**\n\n![Average Donations for Project](Images/CTE1-DonationSummarybyProject.png)\n\n**3. Monthly Donation Trend**\n\n![Monthly Donation Trend](Images/MonthlyDonationTrends.png)\n\n**4. Top 3 Donars by Project**\n\n![Top 3 Donars by Project](Images/Top3DonarsbyProject.png)\n\n**5. Top Performing Projects by Impact**\n\n![Top Performing Projects by Impact](Images/TopPerformingProjectsbyImpact.png)\n\n**6. Donor Retention \u0026 Contribution Trends Over Time**\n\n![Donor Retention \u0026 Contribution Trends Over Time](Images/DonorRetentionNContributionTrendsOverTime.png)\n\n**7. Volunteer Work Distribution**\n\n![Volunteer Work Distribution](Images/VolunteerWorkloadDistribution.png)\n\n**8. Rolling Totals of Volunteer Work Hours**\n\n![Rolling Totals of Volunteer Work Hours](Images/Rolling%20Totals%20of%20Volunteer%20Work%20Hours.png)\n\n**9. Beneficiries Feedback by Project**\n\n![Beneficiries Feedback by Project](Images/View2-BeneficiriesFeedbackByProject.png)\n\n---\n\n## **📬 Connect With Me**  \n\n💼 **LinkedIn:** (www.linkedin.com/in/sridevi-pemmasani-2b849a317)\n\n📧 **Email:** sriramapemmasani@gmail.com \n\n🚀 **GitHub:** (https://github.com/Sridevi-Pemmasani) \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsridevi-pemmasani%2Fsql-project-ngo-operations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsridevi-pemmasani%2Fsql-project-ngo-operations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsridevi-pemmasani%2Fsql-project-ngo-operations/lists"}