This project uses basic SQL to analyze customer data and summarize how many customers use each email provider (Gmail, Yahoo, Outlook, etc.). The output is then visualized in Excel using a simple bar chart.
customer_data.csv
β Sample customer dataset with email and domain infocustomer_summary.sql
β SQL queries to explore and summarize the datacustomer_data_chart.xlsx
β Excel file with PivotTable and bar chart of domain usageemailsummaryproject.db
β Database in DB browser, table made with .csv file attachedimages/
β Optional screenshots of the Excel chart
-- View all customers
SELECT * FROM customer_data;
-- Filter customers by city
SELECT * FROM customer_data WHERE city = 'Houston';
-- Count customers by email domain
SELECT domain, COUNT(*) as total_customers
FROM customer_data
GROUP BY domain
ORDER BY total_customers DESC;
-- Counting how many users use each email domain
SELECT domain, COUNT(*) AS total_customers
FROM customer_data
GROUP BY domain
ORDER BY total_customers DESC;
-- Listing customers that use Gmail
SELECT * FROM customer_data
WHERE domain = 'gmail.com';
--Showing customers ordered A-Z
SELECT * FROM customer_data
ORDER BY name ASC;
--Getting a count of total customers
SELECT COUNT(*) AS total_customers FROM customer_data;
The final SQL query count domain output was exported to Excel to create a simple bar chart and pivot table showing how many customers use each email provider. Screebshots of SQL queries.
- Basic SQL queries: SELECT, WHERE, GROUP BY, ORDER BY
- Excel: Bar chart creation and data summarization
- Understanding of how to combine SQL analysis with Excel visuals