{"id":19316598,"url":"https://github.com/wisskirchenj/sales-database","last_synced_at":"2026-05-19T04:02:28.350Z","repository":{"id":190039069,"uuid":"681827126","full_name":"wisskirchenj/sales-database","owner":"wisskirchenj","description":"Pure database-project to create, fill and work with a Sales-database. On MySQL running in docker.","archived":false,"fork":false,"pushed_at":"2024-05-11T07:17:34.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T04:42:07.906Z","etag":null,"topics":["database-views","docker-compose","er-model","mysql","trigger"],"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/wisskirchenj.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":"2023-08-22T21:01:19.000Z","updated_at":"2024-05-11T07:17:37.000Z","dependencies_parsed_at":"2024-04-22T18:09:37.023Z","dependency_job_id":"82428218-eab2-43e7-bf4c-a75aa1a6bee9","html_url":"https://github.com/wisskirchenj/sales-database","commit_stats":null,"previous_names":["wisskirchenj/sales-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wisskirchenj/sales-database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisskirchenj%2Fsales-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisskirchenj%2Fsales-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisskirchenj%2Fsales-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisskirchenj%2Fsales-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wisskirchenj","download_url":"https://codeload.github.com/wisskirchenj/sales-database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisskirchenj%2Fsales-database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271275374,"owners_count":24731236,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"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":["database-views","docker-compose","er-model","mysql","trigger"],"created_at":"2024-11-10T01:11:58.320Z","updated_at":"2026-05-19T04:02:28.248Z","avatar_url":"https://github.com/wisskirchenj.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# IDEA EDU Course ...\n\nImplemented in the Java \u003cb\u003eSQL for Backend Developers\u003c/b\u003e Track of hyperskill.org's JetBrain Academy.\u003cbr\u003e\n\nProject goal is to exercise SQL, as I tend to forget its syntax quicker than any other programming language.\nAlso, translating ER-diagrams, creating triggers, views is not my usual daily work but helps me in the job still.\n\n## Project status\n\nProject was completed on 27.08.23.\n\n## Repository Contents\n\nSources for all project tasks (5 stages).\n\n## Progress\n\n22.08.23 Project started. IDEA-setup and first repo, setting up `docker-compose.yml` for a docker MySQL-image.\n\n22.08.23 Stage 1 completed. Translating the given ER-diagram of six relations-connected tables into a DDL.\n\n22.08.23 Stage 2 completed. Inserting some basic data into the tables using `AFTER INSERT` trigger to keep an\ninventory table in sync with sales. Add a clean script to be able to repeat all exercises.\n\n23.08.23 Stage 3 completed. Create a composite index (which unfortunately does not help to solve the problem here).\nThen create a view to group total sales on model. Query this view.\n\n26.08.23 Stage 4 completed. Create an employee report only on Sales Assistants, that calculates the employee's monthly \nsales bonus based on their share in the monthly company revenue. Quite complex query - here saved as report view - using\n`WITH` sub-selects, `CASE` statement and more.\n\n27.08.23 Final Stage 5 completed. Create a model report - again saved as view - with some sales indicators as sales inventory ratio.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisskirchenj%2Fsales-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisskirchenj%2Fsales-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisskirchenj%2Fsales-database/lists"}