Questions and Answers On E-Commerce Analytics
Questions and Answers On E-Commerce Analytics
On E-Commerce Analytics
1.Rank Products by Total Sales Value?
from products
group by product_id,product_name;
SELECT c.customer_id,c.customer_name,
MONTH(order_date) AS current_month
FROM Customers c
FROM Customers c
group by c.customer_id,c.customer_name
limit 3;
4.Calculate Cumulative Revenue Over Time?
select order_date,
from orders;
group by p.product_name;
SELECT customer_name
FROM Customers c
FROM Products
GROUP BY category);
FROM Orders
GROUP BY order_month;
9.Find the number of orders placed by customers from each country?
FROM Customers c
GROUP BY country;
10.Find products that have been ordered by more than one customer?
SELECT product_name
FROM Products p
GROUP BY product_name