✉️ Email: [email protected]
🔗 LinkedIn: linkedin.com/in/tahsinayman | 🐙 GitHub: github.com/TahsinAyman
This project involves customer segmentation using RFM (Recency Frequency Monetary)
Segmentation in SQL
data.csv
- used as primary source of data in table (used bulk insertion)table.sql
- used to create database and tables necessaryeda.sql
- used for exploratory data analysisrfm_segmentation.sql
- used to create view with RFM Segmented customer and their rfm scorerfm_report.sql
- used to create rfm report where the amount of customer of each category queried.main.sql
- used to run operations
- Clone the repository using
git clone https://github.com/TahsinAyman/supermarket_rfm_analysis.git
- Under a stable
MySQL
connection runtable.sql
- From
data.csv
file import all the data usingMySQL Workbench
orData grip
- To get a grasp of the data run
eda.sql
(Optional) - Run
rfm_segmentation.sql
andrfm_report.sql
sequentially. - Run the
main.sql
to see report or theRFM
score