Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TABLES OVERVIEW Sales: Records each sale, including sale ID , date, product ID , quantity, customer ID , and branch ID . Customer Details: Stores
TABLES OVERVIEW
Sales: Records each sale, including sale ID date, product ID quantity, customer ID and branch ID
Customer Details: Stores customer information, including customer ID name, contact details, and loyalty program status.
Product Details: Contains product information, such as product ID name, category, price, and stock levels.
Staff Shift Details: Logs staff shifts, including staff ID branch ID shift date, start time, and end time.
Complaint Details: Records customer complaints, with complaint ID customer ID product ID complaint date, and resolution status.
Objective
Analyze "AussieRetailers" operational data using advanced SQL queries, focusing on sales performance, customer satisfaction, and staff efficiency. The analysis should culminate in a detailed report with insights, trends, and recommendations.
Data Preparation:
Draw an ERD diagram with foreign and primary keys for each table entity
Normalize the data if necessary to eliminate redundancy and ensure database efficiency if applicable
Analysis Requirements:
List all products and their categories with sales greater than units.
Calculate the total revenue per branch, considering the quantity sold and product prices.
Identify customers who have made purchases in more than different branches.
category for sales made in the last quarter.
Rank products within each category based on the total sales quantity using a window function.
Show the monthovermonth percentage growth in sales for the top products by total quantity sold.
Find all products that have not been sold in the last months from June to December but have stock levels above
Calculate the total number of complaints lodged against products in each category.
List the top customers by total spending and show their most frequently bought product category.
Identify days of the week with the highest sales transactions volume.
Determine the branch with the lowest stock levels across all products.
Analyze the correlation between loyalty program status and the average transaction value per customer.
Calculate the average duration between complaint registration and resolution.
Identify staff members with shifts longer than hours and list their corresponding branches and shift dates.
Find the product with the highest number of complaints and detail the nature of these complaints.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started