Task 4 of my Data Analyst Internship (ELEVATE LABS): A complete SQL-based data analysis project using an eCommerce dataset. Includes relational queries, JOINs, subqueries, views, indexing, and aggregate functions using SQLite.
This project is part of a Data Analyst Internship task (Task 4), which focuses on using SQL to analyze and extract insights from a structured relational dataset.
We used a simulated eCommerce dataset with 4 relational tables:
customers.csvorders.csvproducts.csvorder_items.csv
These tables were imported into SQLite for analysis.
- SQLite (via SQLiteOnline.com)
- SQL (Standard ANSI SQL with SQLite syntax)
| Step | Description |
|---|---|
| a. | Used SELECT, WHERE, ORDER BY, GROUP BY |
| b. | Implemented INNER JOIN, LEFT JOIN, and simulated RIGHT JOIN |

| c. | Used subqueries to filter specific results |

| d. | Applied aggregate functions (SUM, AVG) |

| e. | Created a SQL VIEW to analyze high-value orders |

| f. | Created an INDEX on customer_id for optimization |

task4_sql_analysis.sql: Contains all SQL queries for the taskcustomers.csv,orders.csv,products.csv,order_items.csv: Dataset files used for analysis
Screenshots of query outputs were taken from SQLite Online and added to the repository under the /screenshots/ folder. All Screenshots of queries are attached under the queries in Task Requirements and SQL Features Used section.