{"id":22177953,"url":"https://github.com/lesiaukr/goit-rdb-fp","last_synced_at":"2026-02-05T06:03:29.784Z","repository":{"id":233820361,"uuid":"787558890","full_name":"LesiaUKR/goit-rdb-fp","owner":"LesiaUKR","description":"Master's degree. Relational databases: Final project","archived":false,"fork":false,"pushed_at":"2024-04-21T09:58:46.000Z","size":2612,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T03:34:19.193Z","etag":null,"topics":["goit-rdb-fp","sql","workbench"],"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/LesiaUKR.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}},"created_at":"2024-04-16T18:50:31.000Z","updated_at":"2024-04-21T09:58:50.000Z","dependencies_parsed_at":"2024-04-21T10:56:53.259Z","dependency_job_id":null,"html_url":"https://github.com/LesiaUKR/goit-rdb-fp","commit_stats":null,"previous_names":["lesiaukr/goit-rdb-fp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LesiaUKR/goit-rdb-fp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesiaUKR%2Fgoit-rdb-fp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesiaUKR%2Fgoit-rdb-fp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesiaUKR%2Fgoit-rdb-fp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesiaUKR%2Fgoit-rdb-fp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LesiaUKR","download_url":"https://codeload.github.com/LesiaUKR/goit-rdb-fp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesiaUKR%2Fgoit-rdb-fp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29114507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["goit-rdb-fp","sql","workbench"],"created_at":"2024-12-02T08:33:42.303Z","updated_at":"2026-02-05T06:03:29.764Z","avatar_url":"https://github.com/LesiaUKR.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Final project for the course \"relational databases\"\n\n## Description of the final project\n\n1. Upload the data:\n\n- Create a schema named pandemic in the database using SQL command.\n- Select it as the default schema using SQL command.\n- Import the [**data**](https://drive.google.com/file/d/1lHEXJvu2omYRgvSek6mHq-iQ3RmGAQ7e/view) using Import wizard as you have already done in theme 3.\n- Review the data to get familiar with it.\n\n\u003e [!NOTE]\n\u003e As you can see, the attributes Entity and Code are repeated constantly. Get rid of this using data normalization.\n\n2. Normalize the infectious_cases table. Preserve two tables in the same schema with normalized data.\n\n3. Analyze the data:\n\n- For each unique combination of Entity and Code or their id, calculate the average, minimum, maximum values, and sum for the attribute Number_rabies.\n\n\u003e [!NOTE]\n\u003e Consider that the Number_rabies attribute may contain empty values ‘’. You need to filter them out beforehand.\n\n- Sort the result by the calculated average value in descending order.\n- Select only 10 rows to display.\n\n4. Build a column for the difference in years.\n\nFor the original or normalized table, build a column using built-in SQL functions:\n\n- an attribute that creates the date of January 1st of the corresponding year,\n\n\u003e [!NOTE]\n\u003e НFor example, if the attribute contains the value '1996', then the value of the new attribute should be '1996-01-01'.\n\n- an attribute that equals the current date,\n- an attribute that equals the difference in years between the two aforementioned columns.\n\n\u003e [!NOTE]\n\u003e You don't need to recalculate all other attributes, such as Number_malaria.\n\n5. Build your own function.\n\n- If you did not complete the previous task, you can build another function - a function that calculates the number of diseases for a certain period. To do this, divide the number of diseases per year by a certain number: 12 - to get the average number of diseases per month, 4 - per quarter, or 2 - per half a year. Thus, the function should accept two parameters: the number of diseases per year and an arbitrary divisor. You also need to use it - run it on the data. Since not all rows contain a number of diseases, you will need to filter out those that do not have a numerical value (≠ ‘’).\n\n\u003e [!NOTE]\n\u003e If you did not complete the previous task, you can build another function - a function that calculates the number of diseases for a certain period. To do this, divide the number of diseases per year by a certain number: 12 - to get the average number of diseases per month, 4 - per quarter, or 2 - per half a year. Thus, the function should accept two parameters: the number of diseases per year and an arbitrary divisor. You also need to use it - run it on the data. Since not all rows contain a number of diseases, you will need to filter out those that do not have a numerical value (≠ ‘’).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesiaukr%2Fgoit-rdb-fp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesiaukr%2Fgoit-rdb-fp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesiaukr%2Fgoit-rdb-fp/lists"}