Skip to content

This task is part of the Internship program. The objective is to use SQL to perform data analysis operations on an ecommerce dataset. The task involves writing queries to filter, join, aggregate, and summarize data using SQL commands .

Notifications You must be signed in to change notification settings

prachee01/sql_queries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

sql_queries

This task is part of the Internship program. The objective is to use SQL to perform data analysis operations on an ecommerce dataset. The task involves writing queries to filter, join, aggregate, and summarize data using SQL commands .

πŸ“Š Task 4 : SQL for Data Analysis

βœ… Objective

Use SQL to extract, manipulate, and analyze structured data using queries, joins, subqueries, and views.


πŸ›  Tools Used

  • SQLite (via DB Browser)
  • Dataset: Ecommerce_SQL_Database (or Chinook)
  • GitHub for version control

🧾 What I Did

1. SELECT, WHERE, ORDER BY, GROUP BY

  • Filtered customers by city
  • Sorted products by price
  • Counted orders per customer

2. JOINS

  • Used INNER JOIN for customer-order data
  • Used LEFT JOIN for product-category data

3. Subqueries

  • Fetched customers with more than 5 orders

4. Aggregate Functions

  • Calculated average order value and total revenue

5. Views

  • Created a view to summarize customer order revenue

6. Indexing

  • Created an index on orders.customer_id to optimize JOINs

πŸ’Ό Author

Prachee

About

This task is part of the Internship program. The objective is to use SQL to perform data analysis operations on an ecommerce dataset. The task involves writing queries to filter, join, aggregate, and summarize data using SQL commands .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published