Skip to content

TahsinAyman/supermarket_rfm_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌄 RFM Analysis

Contr IMage

✉️ Email: [email protected]

🔗 LinkedIn: linkedin.com/in/tahsinayman | 🐙 GitHub: github.com/TahsinAyman


🚀 Overview

This project involves customer segmentation using RFM (Recency Frequency Monetary) Segmentation in SQL

💼 Tools Used

badge badge badge badge badge badge Power Bi

🛰️ Files

  • data.csv - used as primary source of data in table (used bulk insertion)
  • table.sql - used to create database and tables necessary
  • eda.sql - used for exploratory data analysis
  • rfm_segmentation.sql - used to create view with RFM Segmented customer and their rfm score
  • rfm_report.sql - used to create rfm report where the amount of customer of each category queried.
  • main.sql - used to run operations

How to Run 👈

  • Clone the repository using
    git clone https://github.com/TahsinAyman/supermarket_rfm_analysis.git
  • Under a stable MySQL connection run table.sql
  • From data.csv file import all the data using MySQL Workbench or Data grip
  • To get a grasp of the data run eda.sql (Optional)
  • Run rfm_segmentation.sql and rfm_report.sql sequentially.
  • Run the main.sql to see report or the RFM score

🔥 Table Structure

tables

🔥 End Result

report

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published