Skip to content

Latest commit

 

History

History
46 lines (22 loc) · 1.45 KB

README.md

File metadata and controls

46 lines (22 loc) · 1.45 KB

Sales-Insights-Tableau

Link to the dashboard: https://prod-useast-a.online.tableau.com/t/tableaumahesh/views/Sales_Insights/Dashboard1

Preview

image

Project Objective and Success Criteria (AIMS Grid)

image

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";

Credit : Codebasics