Giter Site home page Giter Site logo

senja-p / sql-customer-sales Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 3.89 MB

Examples of SQL queries created for Customer and Sales Data Analysis study project

sql data-dictionary rdbms relational-databases snowflake postgresql pgadmin4 subqueries join-tables common-table-expression tableau tableau-public data-analysis data-analytics data-analysis-sql

sql-customer-sales's Introduction

SQL-Customer-Sales

Project Overview

  • The purpose of this study project was to examine the global sales revenue associated with film rentals and customers in order to help a company to launch an online film rental platform.

  • I divided countries into high, medium and low categories based on their sales and customer numbers. My advice was to focus on those countries where both sales and customer numbers were high; India, China, USA and Mexico, and select the films from the popular film genre categories based on the previous sale figures and / or the number of rentals.

  • To help management and marketing teams to work with country related strategies I provided them the country level data. I also included the top 5 cities based on the customer numbers to highlight the customer hot spots. The findings, country related data and recommendations are available on Tableau.

  • Data Limitation: The biggest limitation was the sample size; only 599 customers globally. 87% of all countries had less than 10 customers.

Analytics

  • Loaded data into a relational database management system (RDBMS), extracted a snowflake-type entity relationship diagram and explored data types, structures and keys
  • Wrote SQL queries to filter, clean, organise and summarise data
  • Used SQL to join tables, performed subqueries (inner & outer statements) and Common Table Expressions and compared performance times

Technical skills utilised

  • SQL Tool used; PostgreSQL, PgAdmin 4 (Examples of SQL queries uploaded above)
  • Excel; SQL summary data outputs from PgAdmin4 transferred into Excel, creating a Data Dictionary
  • Tableau for visualisation

Data

  • Around 3MB containing 15 files
  • Customer and sale data

Data Source

  • CareerFoundry / Study Project / Rockbuster Data Set

Return to the main portfolio page

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.