Product Sales and Trends
SQL
Data Analysis
Retail Sales
Consumer Electronics
Customer Behavior
Pricing Strategies
Table of Contents
- Count the total number of orders placed in January.
- Retrieve the location of orders placed on February 18, 2019, at 1:35 AM.
- Count the total number of orders for iPhones sold in January.
- List distinct account numbers of customers who made purchases in February, ensuring we're only considering those present in both customers and FebSales tables.
- Calculate the total quantity of all products sold on February 18, 2019.
- Retrieve the product with the lowest price sold in January. Limit to 1 to ensure we only get the single cheapest product.
- Calculate the total revenue (sum of quantity multiplied by price) per product for January sales.
- Count the number of products sold and the total revenue generated from sales at a specific location in February.
- For customers who placed orders with more than 2 items in February, calculate the average revenue (quantity*price) and count the distinct account numbers. Filters out any erroneous order IDs.
- Select the order dates for orders placed between February 13, 2019, and February 18, 2019.
This SQL script provides a comprehensive analysis of retail sales data, targeting the consumer electronics sector with a focus on monthly sales performance, customer behavior, and product pricing strategies. Through a series of meticulously crafted queries, it reveals insights into sales volume and revenue generation for key products like the iPhone, tracks customer transactions to understand buying patterns, and identifies the most economical product offerings. By analyzing sales data from January and February, including specific days with high sales volume and locations with significant customer engagement, the script offers valuable perspectives on market trends, customer preferences, and the effectiveness of sales strategies. The script not only demonstrates an adept handling of SQL for data analysis but also serves as a strategic tool for businesses in the consumer electronics market to optimize their sales approaches, enhance customer satisfaction, and drive revenue growth.