This project connects to a MySQL database, fetches customer-wise sales data, and visualizes the total purchase amount using a bar chart.
- Connects to a MySQL database (
ai_resume
) - Runs a SQL query on the
sales_data
table - Calculates total sales per customer
- Displays the results using a bar chart (Matplotlib)
- Python 3.x
pymysql
for MySQL connectionmatplotlib
for data visualization- MySQL Server with a database named
ai_resume
and a tablesales_data