Coder Social home page Coder Social logo

credit_card_case_study's Introduction

SQL Case Study: Credit Card

Here is a fantastic Data Analyst case study to check SQL knowledge.

Project Description

This dataset contains insights into a collection of credit card transactions made in India, offering a comprehensive look at the spending habits of Indians across the nation. From the Gender and Card type used to carry out each transaction, to which city saw the highest amount of spending and even what kind of expenses were made, this dataset paints an overall picture about how money is being spent in India today.

Download credit card transactions dataset from below link: https://lnkd.in/d6ZTY2fQ

To successfully answer all the questions you should have been exposed to the following areas of SQL:

  1. Date functions: DATEDIFF, DATEPART, DATEADD
  2. Case When Statements
  3. Aggregate functions with CASE WHEN, GROUP BY, ORDER BY
  4. Joins
  5. Window functions(DENSE_RANK, LEAD, LAG)
  6. CTE(common table expression)

๐ŸŽฏ Project Objective: The main objective of this case study is to apply various SQL concepts and techniques to answer insightful questions about Credit Card spend habits. Some of the key objectives include:

  1. Write a query to print top 5 cities with highest spends and their percentage contribution of total credit card spends
  2. Write a query to print highest spend month and amount spent in that month for each card type
  3. Write a query to print the transaction details(all columns from the table) for each card type when it reaches a cumulative of 1000000 total spends(We should have 4 rows in the o/p one for each card type)
  4. Write a query to find city which had lowest percentage spend for gold card type
  5. Write a query to print 3 columns: city, highest_expense_type , lowest_expense_type (example format : Delhi , bills, Fuel)
  6. Write a query to find percentage contribution of spends by females for each expense type
  7. Which card and expense type combination saw highest month over month growth in Jan-2014
  8. During weekends which city has highest total spend to total no of transcations ratio
  9. Which city took least number of days to reach its 500th transaction after first transaction in that city

Working on this case study has been an amazing experience, allowing me to dive deep into analyzing credit card spending patterns in India. By leveraging SQL I was able to extract valuable insights and draw meaningful conclusions.

credit_card_case_study's People

Contributors

anurupa19 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.