https://github.com/djdurga/sales-insights-data-analysis-project
We use mysql and power bi to understand this project
https://github.com/djdurga/sales-insights-data-analysis-project
Last synced: 7 months ago
JSON representation
We use mysql and power bi to understand this project
- Host: GitHub
- URL: https://github.com/djdurga/sales-insights-data-analysis-project
- Owner: Djdurga
- Created: 2024-05-29T07:05:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T07:22:30.000Z (about 2 years ago)
- Last Synced: 2025-03-27T18:31:46.826Z (over 1 year ago)
- Size: 215 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sales-Insights-Data-Analysis-Project
I used MySQL and Power BI to understand this project.
## Data Analysis Using SQL
1. Show all customer records
`SELECT * FROM customers;`
2. Show total number of customers
`SELECT count(*) FROM customers;`
3. Show transactions for Chennai market (market code for chennai is Mark001
`SELECT * FROM transactions where market_code='Mark001';`
4. Show distrinct product codes that were sold in chennai
`SELECT distinct product_code FROM transactions where market_code='Mark001';`
5. Show transactions where currency is US dollars
`SELECT * from transactions where currency="USD"`
6. Show transactions in 2020 join by date table
`SELECT transactions.*, date.* FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020;`
7. Show total revenue in year 2020,
`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";`
8. Show total revenue in year 2020, January Month,
`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");`
9. Show total revenue in year 2020 in Chennai
`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";`