This project demonstrates fundamental SQL skills using the Classic Models sample database. The analysis covers data retrieval, filtering, sorting, aggregation, joins, subqueries, and views to extract meaningful business insights from an e-commerce dataset.
The project uses the Classic Models Database, a sample database containing information about:
- Customers
- Orders
- Products
- Product Lines
- Payments
- Employees
- Offices
Retrieved customer names and countries from the customers table.
Sorted products by purchase price in ascending order.
Retrieved products sorted by purchase price in descending order.
Filtered customers located in the USA.
Grouped customers by country and calculated customer counts.
Used COUNT() to calculate total orders.
Combined customer and order information using JOIN operations.
Calculated average customer credit limit.
Identified customers whose credit limit exceeds the average credit limit.
Created a reusable view combining customer and order information.
The screenshots folder contains execution results for all SQL queries.
- MySQL Server
- MySQL Workbench
- Visual Studio Code
- SQL
- Data Retrieval
- Data Filtering
- Sorting
- Aggregation
- Grouping
- Joins
- Subqueries
- Views
- Business Data Analysis
SQL-Data-Analysis/
├── dataset/
│ └── mysqlsampledatabase.sql
├── screenshots/
│ ├── query1_select.png
│ ├── query2_orderby.png
│ ├── query3_orderby_desc.png
│ ├── query4_where.png
│ ├── query5_groupby.png
│ ├── query6_aggregate.png
│ ├── query7_join.png
│ ├── query8_avg.png
│ ├── query9_subquery.png
│ └── query10_view.png
├── queries.sql
└── README.md
Vaibhav Barman