{"id":22479679,"url":"https://github.com/djdurga/sales-insights-data-analysis-project","last_synced_at":"2026-01-07T05:04:50.449Z","repository":{"id":241749156,"uuid":"807472875","full_name":"Djdurga/Sales-Insights-Data-Analysis-Project","owner":"Djdurga","description":"We use mysql and power bi to understand this project ","archived":false,"fork":false,"pushed_at":"2024-05-30T07:22:30.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T18:31:46.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Djdurga.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-05-29T07:05:50.000Z","updated_at":"2024-05-30T07:22:34.000Z","dependencies_parsed_at":"2024-05-30T00:06:18.826Z","dependency_job_id":"9fc00e8c-9fab-4c4c-8d2e-4618763b19fc","html_url":"https://github.com/Djdurga/Sales-Insights-Data-Analysis-Project","commit_stats":null,"previous_names":["djdurga/sales-insights-data-analysis-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Djdurga/Sales-Insights-Data-Analysis-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Djdurga%2FSales-Insights-Data-Analysis-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Djdurga%2FSales-Insights-Data-Analysis-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Djdurga%2FSales-Insights-Data-Analysis-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Djdurga%2FSales-Insights-Data-Analysis-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Djdurga","download_url":"https://codeload.github.com/Djdurga/Sales-Insights-Data-Analysis-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Djdurga%2FSales-Insights-Data-Analysis-Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28232763,"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":"2026-01-07T02:00:05.975Z","response_time":58,"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":[],"created_at":"2024-12-06T15:16:27.606Z","updated_at":"2026-01-07T05:04:50.425Z","avatar_url":"https://github.com/Djdurga.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sales-Insights-Data-Analysis-Project\nI used MySQL and Power BI to understand this project.\n\n## Data Analysis Using SQL\n\n1. Show all customer records\n\n`SELECT * FROM customers;`\n\n2. Show total number of customers\n\n`SELECT count(*) FROM customers;`\n\n3. Show transactions for Chennai market (market code for chennai is Mark001\n\n`SELECT * FROM transactions where market_code='Mark001';`\n\n4. Show distrinct product codes that were sold in chennai\n\n`SELECT distinct product_code FROM transactions where market_code='Mark001';`\n\n5. Show transactions where currency is US dollars\n\n`SELECT * from transactions where currency=\"USD\"`\n\n6. Show transactions in 2020 join by date table\n\n`SELECT transactions.*, date.* FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020;`\n\n7. Show total revenue in year 2020,\n\n`SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020 and transactions.currency=\"INR\\r\" or transactions.currency=\"USD\\r\";`\n\n8. Show total revenue in year 2020, January Month,\n\n  `SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020 and and date.month_name=\"January\" and (transactions.currency=\"INR\\r\" or transactions.currency=\"USD\\r\");`\n\n9. Show total revenue in year 2020 in Chennai\n\n`SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020 and transactions.market_code=\"Mark001\";`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdurga%2Fsales-insights-data-analysis-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjdurga%2Fsales-insights-data-analysis-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdurga%2Fsales-insights-data-analysis-project/lists"}