{"id":21042572,"url":"https://github.com/kirolos00daniel/covid-sql-analysis","last_synced_at":"2025-07-09T01:11:01.808Z","repository":{"id":263267894,"uuid":"889849790","full_name":"Kirolos00Daniel/Covid-SQL-Analysis","owner":"Kirolos00Daniel","description":"Analysis using SQL server For Covid Data","archived":false,"fork":false,"pushed_at":"2024-11-17T12:18:28.000Z","size":24770,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T17:16:50.410Z","etag":null,"topics":["api","csv","excel","sql","sqlserver","sqlserver-2019"],"latest_commit_sha":null,"homepage":"","language":null,"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/Kirolos00Daniel.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":"2024-11-17T12:04:38.000Z","updated_at":"2024-11-17T12:20:45.000Z","dependencies_parsed_at":"2024-11-17T13:30:51.264Z","dependency_job_id":null,"html_url":"https://github.com/Kirolos00Daniel/Covid-SQL-Analysis","commit_stats":null,"previous_names":["kirolos00daniel/covid-sql-analysis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirolos00Daniel%2FCovid-SQL-Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirolos00Daniel%2FCovid-SQL-Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirolos00Daniel%2FCovid-SQL-Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirolos00Daniel%2FCovid-SQL-Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kirolos00Daniel","download_url":"https://codeload.github.com/Kirolos00Daniel/Covid-SQL-Analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243489777,"owners_count":20298997,"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":["api","csv","excel","sql","sqlserver","sqlserver-2019"],"created_at":"2024-11-19T14:06:08.388Z","updated_at":"2025-03-13T21:41:53.780Z","avatar_url":"https://github.com/Kirolos00Daniel.png","language":null,"readme":"# SQL Analysis for COVID Database\n\n## Overview\n\nThis project focuses on analyzing COVID-19 data using SQL. The database includes comprehensive information about COVID-19 cases, vaccinations, and testing statistics globally, allowing for data-driven insights into the pandemic's progression and impact.\n\n\n\n## Key Features\n\n- **Data Structure:**\n  - A structured database with tables for:\n    - **`Cases`**: Tracks confirmed cases, recoveries, and deaths by country and date.\n    - **`Vaccinations`**: Logs vaccination doses administered and population coverage.\n    - **`Testing`**: Includes testing rates and positivity percentages.\n  - Relationships between tables for integrated analysis.\n\n- **SQL Queries for Analysis:**\n  - Total and active case trends by country.\n  - Vaccination progress, including percentage of the population vaccinated.\n  - Mortality and recovery rates.\n  - Positivity rates and their relationship with testing levels.\n  - Identification of COVID-19 peaks by region.\n\n- **Visualizations:**\n  - Results are designed for easy integration with BI tools (e.g., Tableau, Power BI) for dashboards.\n\n\n\n## Getting Started\n\n### Prerequisites\n\n- **Database Engine:** MySQL, PostgreSQL, or any SQL-compatible database.\n- **SQL Client:** Workbench, DBeaver, or a similar tool.\n- **Dataset:** Downloaded COVID-19 dataset in CSV format from a reputable source such as [Our World in Data](https://ourworldindata.org/coronavirus-data).\n\n### Setup Instructions\n\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/your-username/SQL-Analysis-COVID.git\n   cd SQL-Analysis-COVID\n   ```\n\n2. **Import Dataset into the Database:**\n   - Use provided scripts in the `Data/` directory to create tables and import data.\n\n3. **Run SQL Queries:**\n   - Open the `SQL Queries/` folder and execute the desired `.sql` files for analysis.\n\n4. **Optional: Integrate with BI Tools:**\n   - Export query results for visualization or connect your database directly to a BI tool.\n\n\n\n## File Structure\n\n```plaintext\nSQL-Analysis-COVID/\n├── Data/\n│   ├── create_tables.sql  # SQL script for table creation.\n│   ├── import_data.sql    # Script to load COVID datasets.\n├── SQL Queries/\n│   ├── case_analysis.sql  # Analysis of COVID case trends.\n│   ├── vaccination.sql    # Queries for vaccination progress.\n│   ├── testing.sql        # Insights into testing and positivity rates.\n└── README.md              # Project overview and instructions.\n```\n\n\n\n## Sample Queries\n\n### Example 1:  Total Population vs Vaccinations\n```sql\nSelect dea.continent, dea.location, dea.date, dea.population, vac.new_vaccinations\n, SUM(CONVERT(int,vac.new_vaccinations)) OVER (Partition by dea.Location Order by dea.location, dea.Date) as RollingPeopleVaccinated\nFrom PortfolioProject..CovidDeaths dea\nJoin PortfolioProject..CovidVaccinations vac\n\tOn dea.location = vac.location\n\tand dea.date = vac.date\nwhere dea.continent is not null \norder by 2,3\n```\n\n### Example 2: Creating View to store data for later visualizations\n```sql\nCreate View PercentPopulationVaccinated as\nSelect dea.continent, dea.location, dea.date, dea.population, vac.new_vaccinations\n, SUM(CONVERT(int,vac.new_vaccinations)) OVER (Partition by dea.Location Order by dea.location, dea.Date) as RollingPeopleVaccinated\nFrom PortfolioProject..CovidDeaths dea\nJoin PortfolioProject..CovidVaccinations vac\n\tOn dea.location = vac.location\n\tand dea.date = vac.date\nwhere dea.continent is not null \n```\n\n### Example 3: Showing contintents with the highest death count per population\n```sql\nSelect continent, MAX(cast(Total_deaths as int)) as TotalDeathCount\nFrom PortfolioProject..CovidDeaths\nWhere continent is not null \nGroup by continent\norder by TotalDeathCount desc\n```\n\n\n\n## License\n\nThis project is licensed under the MIT License.\n\n\n## Contact\n\nFor questions or collaboration:\n- **Email:** kiroemad239@gmail.com\n- **GitHub:** [Kirolos00Daniel](https://github.com/your-username)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirolos00daniel%2Fcovid-sql-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirolos00daniel%2Fcovid-sql-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirolos00daniel%2Fcovid-sql-analysis/lists"}