{"id":26510959,"url":"https://github.com/Nadezhda2024/the_project_2","last_synced_at":"2025-12-30T20:54:28.258Z","repository":{"id":277154694,"uuid":"931503246","full_name":"Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL","owner":"Nadezhda2024","description":"Исследование данных торговой компании «СтройСнаб» с помощью SQL.","archived":false,"fork":false,"pushed_at":"2025-03-20T11:46:11.000Z","size":4015,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T12:46:51.503Z","etag":null,"topics":["exel","github","markdown","mysql","portfolio","postgresql","sql","sql-server","sqlite3","visual-studio-code"],"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/Nadezhda2024.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":"2025-02-12T11:43:46.000Z","updated_at":"2025-03-20T11:46:14.000Z","dependencies_parsed_at":"2025-02-12T12:54:29.356Z","dependency_job_id":"8cce8a0c-fbca-4148-89c9-0effff3434a4","html_url":"https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL","commit_stats":null,"previous_names":["nadezhda2024/rresearch-of-the-trading-company-s-data-using-sql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nadezhda2024%2FRresearch-of-the-trading-company-s-data-using-SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nadezhda2024%2FRresearch-of-the-trading-company-s-data-using-SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nadezhda2024%2FRresearch-of-the-trading-company-s-data-using-SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nadezhda2024%2FRresearch-of-the-trading-company-s-data-using-SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nadezhda2024","download_url":"https://codeload.github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722742,"owners_count":20499154,"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":["exel","github","markdown","mysql","portfolio","postgresql","sql","sql-server","sqlite3","visual-studio-code"],"created_at":"2025-03-21T02:18:40.326Z","updated_at":"2025-12-30T20:54:28.227Z","avatar_url":"https://github.com/Nadezhda2024.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Исследование данных торговой компании с помощью SQL\n\n![PostgreSQL](https://img.shields.io/badge/PostgreSQL-316192?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)\n![MySQL](https://img.shields.io/badge/mysql-4479A1.svg?style=for-the-badge\u0026logo=mysql\u0026logoColor=white)\n![](https://img.shields.io/badge/SQLite-07405E?style=for-the-badge\u0026logo=sqlite\u0026logoColor=white)\n![SQL Server](https://img.shields.io/badge/Microsoft_SQL_Server-CC2927?style=for-the-badge\u0026logo=microsoft-sql-server\u0026logoColor=white)\n![Microsoft Excel](https://img.shields.io/badge/Microsoft_Excel-217346?style=for-the-badge\u0026logo=microsoft-excel\u0026logoColor=white)\n![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-0078d7.svg?style=for-the-badge\u0026logo=visual-studio-code\u0026logoColor=white)\n![Markdown](https://img.shields.io/badge/markdown-%23000000.svg?style=for-the-badge\u0026logo=markdown\u0026logoColor=white)\n![Microsoft Word](https://img.shields.io/badge/Microsoft_Word-2B579A?style=for-the-badge\u0026logo=microsoft-word\u0026logoColor=white)\n![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white)\n\nРеализовала итоговый проект исследование данных торговой компании с помощью SQL. \nОписание задачи: руководство холдинга хочет инвестировать в компанию «СтройСнаб». Для этого руководству нужно разобраться и понять, что именно компания продаёт, в каких объёмах и как долго, какая прибыль. Особенно интересуют текущие торговые активы.\nСпециалиста ИТ-департамента получил от «СтройСнаб» какие-то дампы данных,  которые передал мне.\n\nПровела исследование данных торговой компании «СтройСнаб» с помощью SQL.\n\n## Исследование полученных данных:\n\n**Исследование структуры таблицы** \n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/4D1pk94-?hide=2)\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/EXEC%20sp_help.png)\n\n\n**Исследование каждого поля**\n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/utQRs-A9)\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/SELECT%2C%20FROM%2C%20COUNT%2C%20MIN%2C%20MAX%2C%20AVG%2C%20DISTINCT.png)\n\nПредоставленные данные в таблице из корпоративного хранилища компании «СтройСнаб» содержат информацию за определенный временной промежуток, отражающие явления и процессы компании. В сборнике помещены показатели: типы заказов, категории продуктов, продукт, производитель, количество продукта, цена, цена продажи.\n\n## Исправление ошибок в данных\n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/Qf7w5pPZ)\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/DELETE%2C%20UPDATE.png)\n\n## Анализ финансовых показателей\n\n**Расчеты с помощью SQL**\n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/Lxez5yfT)\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/SUM%2C%20%20WHERE%2C%20GROUP%20BY%2C%20ORDER%20BY.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/SUM%2C%20ROUND%2C%20WHERE%2C%20CASE%2C%20GROUP%20BY%2C%20ORDER%20BY.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/SUM%2C%20ROUND%2C%20WHERE%2C%20CASE%2C%20GROUP%20BY%2C%20ORDER%20BY%201.png)\n\n###[Отчет анализа финансовых показателей в Microsoft Excel](https://docs.google.com/spreadsheets/d/1wANTVPisHzI8eJYfHfKCbCEhtIpJqzB2/edit?usp=sharing\u0026ouid=105723758090183599080\u0026rtpof=true\u0026sd=true)\n\n## Модернизация структуры БД\n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/teV4PCrC)\n\nСформировала таблицы справочники с присвоением  идентификаторов во всех справочниках, начинающихся со значения 1 и монотонно возрастающие без пропуска значений. Для получения результата использовала автоинкремент. Наполнила основную таблицу данными из созданных справочников.\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/CREATE%20TABLE%2C%20INSERT.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/CREATE%20TABLE%2C%20INSERT%2C%20IDENTITY.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/CREATE%20TABLE%2C%20INSERT%2C%20JOIN.png)\n\n## Расчёт остатков на складе\n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/aBmaks_X)\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA%D0%B8%201.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/%D0%BE%D0%B1%D1%8A%D0%B5%D0%B4%D0%B8%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5%20%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%201.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/%D1%80%D0%B0%D1%81%D1%87%D0%B5%D1%82%20%D0%BE%D1%81%D1%82%D0%B0%D1%82%D0%BA%D0%BE%D0%B2%20COALESCE%2C%20CASE.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/COALESCE%2C%20CASE.png)\n\n## Импорт дополнительной порции данных\n\n\u003cb\u003e[Ссылка на тестовую среду](https://dbfiddle.uk/FWXHaz0R)\n\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/SUBSTRING%2C%20%20TRIM.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/%D0%BD%D0%BE%D0%B2%D0%B0%D1%8F%20%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/%D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0%20%D1%81%D0%BE%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D1%81%D1%82%D0%B2%D0%B8%D1%8F%20%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA%D0%B0%D0%BC.png)\n![](https://github.com/Nadezhda2024/Rresearch-of-the-trading-company-s-data-using-SQL/blob/main/%D0%BD%D0%B0%D0%BF%D0%BE%D0%BB%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%BD%D0%BE%D0%B2%D0%BE%D0%B9%20%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D1%8B%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%BC%D0%B8.png)\n\n## Автор\n- \u003cb\u003e[Nadezhda2024](https://github.com/Nadezhda2024)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNadezhda2024%2Fthe_project_2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNadezhda2024%2Fthe_project_2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNadezhda2024%2Fthe_project_2/lists"}