This repository contains SQL scripts and analyses performed on the AdventureWorks2022 database. The project focuses on various aspects of data analysis, including sales, inventory, suppliers, employee performance, and cost analysis. The results are exported to CSV files for further use in business intelligence and reporting.
The AdventureWorks2022 database is a sample database provided by Microsoft, designed for learning and practicing SQL queries. This project explores key business areas and provides insights through structured queries and data exports.
- Analyze product sales.
- Identify top-selling products.
- Examine sales by product categories.
- Check current stock levels.
- Highlight low-stock products.
Key SQL Scripts:
product_sales.sqltop_products.sqlinventory_analysis.sql
- Analyze customer purchasing behavior.
- Identify top customers by spending.
- Segment customers based on regions.
Key SQL Scripts:
customer_purchases.sqltop_customers.sqlcustomer_segments.sql
- Monitor current inventory levels.
- Identify slow-moving inventory.
- Analyze inventory by warehouse.
- Calculate inventory valuation.
Key SQL Scripts:
inventory_levels.sqlslow_moving_inventory.sqlwarehouse_inventory.sql
- Analyze sales trends over time (monthly/yearly).
- Evaluate sales performance by region.
- Identify seasonal trends in sales.
Key SQL Scripts:
sales_trends.sqlregional_sales.sqlseasonal_sales.sql
- Evaluate employee sales performance.
- Identify top-performing employees.
- Analyze employee performance by regions and products.
Key SQL Scripts:
employee_performance.sqltop_employees.sqlregional_employee_performance.sql
- Review order history and status.
- Identify late orders.
- Calculate average delivery times.
Key SQL Scripts:
order_history.sqllate_orders.sqldelivery_times.sql
- Analyze payment methods used by customers.
- Evaluate cash vs. credit card payments.
- Review monthly payment trends.
Key SQL Scripts:
payment_methods_analysis.sqlcash_vs_credit_analysis.sql
- Evaluate purchases from suppliers.
- Identify top suppliers by spending.
- Analyze supplier performance by product categories.
Key SQL Scripts:
supplier_analysis.sqltop_suppliers.sqlsupplier_category_analysis.sql
- Calculate production costs for products.
- Analyze purchase costs from suppliers.
- Review annual costs and costs by product categories.
Key SQL Scripts:
cost_analysis.sqlannual_costs_analysis.sql