SALES_ORDER_SQL_DB
Introduction
This project focuses on applying SQL queries to
analyze and manage sales data effectively. The
primary aim is to explore different SQL operations and
joins to extract meaningful insights that can support
better decision-making. By structuring queries for
customer details, product information, and order
management, we demonstrate how raw data can be
transformed into actionable knowledge. Through this
project, we highlight the role of SQL in building a
strong foundation for data analysis, reporting, and
strategy development in real-world business scenarios.
Questions
[Link] all customers from India.
[Link] all orders placed by customer “Anushka Ghode.”
[Link] OrderID, OrderDate, Amount for each order
[Link] all products in the Furniture category
[Link] all customers and their orders (LEFT JOIN→ even if no order)
[Link] orders that have no matching customer
[Link] the total order amount placed by each customer
[Link] all customers and the number of orders they have placed
[Link] customers who have placed orders worth more than 3,000 in total
[Link] all orders along with the product details
Questions
[Link] the average order amount for each customer
[Link] the highest order amount placed by each customer
[Link] products that were never ordered
[Link] customers who ordered products from the "Electronics" category
[Link] customers and their total spend, ordered by spend descending
[Link] customers who have placed more than 1 orders
[Link] the top 3 customers who spent the most money overall
[Link] the most frequently ordered product
[Link] the customer who placed the largest single order (by value)
[Link] the category that generated the highest revenue
Questions
[Link] each customer’s first order date
[Link] customers who have ordered from more than 1 product category
CREATE DATABASE
CREATE DATABASE SQL_JOINS;
CREATING CUSTOMER TABLE & INSERTING VALUES
CREATING ORDER-DETAILS TABLE & INSERTING VALUES
CREATING ORDERS TABLE & INSERTING VALUES
CREATING PRODUCTS TABLE & INSERTING VALUES
Show all customers from India.
List all orders placed by customer “Anushka Ghode.”
Retrieve OrderID, OrderDate, Amount for each order
Show all products in the Furniture category
Show all customers and their orders (LEFT JOIN →
even if no order)
Find orders that have no matching customer
Find the total order amount placed by each customer
Show all customers and the number of orders they
have placed
List customers who have placed orders worth
more than 3,000 in total
Show all orders along with the product details
Find the average order amount for each customer
Show the highest order amount placed by
each customer
Show products that were never ordered
Find customers who ordered products from the
"Electronics" category
Show customers and their total spend, ordered
by spend descending
Find customers who have placed more than 1 orders
Find the top 3 customers who spent the most money overall
Find the most frequently ordered product
Show the customer who placed the largest single
order (by value)
Find the category that generated the highest revenue
Show each customer’s first order date
Find customers who have ordered from more
than 1 product category
Thank You
For Your Attention