Git Product home page Git Product logo

richardgourley / data-analysis-report-with-sql Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 40 KB

A simplified introdocutory data analysis report to show how using SQL queries can answer questions from a data warehouse with a star schema. The report answers why server downtime happens and how it can be fixed.

TSQL 100.00%
data-analysis data-warehouse dimension-tables sql sql-server star-schema

data-analysis-report-with-sql's Introduction

Data Analysis Report with SQL

INTRO

This is a report using SQL join queries to retrieve information from a data warehouse with a star schema.

The report is based on a company who want to use their data warehouse, which stores incidents of server downtime in a fact table, to discern if the number of incidents has improved since the company started in January, in the first quarter of the year, and to understand where to focus their efforts in order to improve downtime issues.

The company owners have tasked the data analyst with answering a list of questions to determine if there are downtime issues with a specific time of the day, day of the week, day of the month, office or a specific employee.

Data Warehouse Design

The tables of the data warehouse required to investigate downtime incidents are shown in this diagram:

Data Warehouse Test Tables

CONTENT

  • The queries to answer the questions below are in the 'analysis_queries.sql' file.
  • The 'create_tables.sql' file will create the data warehouse tables.
  • All other 'insert...' files will insert data into the dw tables.

Questions for Analysis

  • The company owners would like the Data Analyst to report back and answer the questions below, particularly focusing on how the servers have performed in quarter 1 since January and any recommendations as to what to focus on to solve downtime problems.

OVERVIEW - QUARTER 1

  1. What were the total number of incidents?

  2. What was the max, min and avg downtime in minutes?

SPECIFIC ANALYSIS - QUARTER 1

  1. Which day of the week had the most incidents?

  2. Which day of the month had the most incidents?

  3. Which time of day had the most incidents?

  4. Which hour of the day had the most incidents?

  5. Which month had the most incidents?

  6. Which employee reported the most incidents, and which office are they based in?

  7. Which office reported the most incidents?

  8. Which office had the highest average downtime and what were the overall number of incidents per office?

See the SQL queries that answered the questions above:

https://github.com/richardgourley/data-analysis-report-with-sql/blob/main/analysis_queries.sql

See the final report based on the answers here:

https://github.com/richardgourley/data-analysis-report-with-sql/blob/main/final_report.MD

data-analysis-report-with-sql's People

Contributors

richardgourley avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.